[OT] Re: writing to an output file specified by an ARGV argument
by Janis <janis_papanagnou@[EMAIL PROTECTED]
>
May 11, 2008 at 06:01 PM
On 11 Mai, 22:17, Francky Leyn <francky.l...@[EMAIL PROTECTED]
> wrote:
> pk wrote:
>
> > Better change the $* to "$@[EMAIL PROTECTED]
" (with the double quotes).
>
> I already though about this.
> Myproblem: I don't remember the differece,
> and I don't find it back in my notes/manuals.
> What is the diffence between $* and "$@[EMAIL PROTECTED]
" is sh?
(this is off-topic in c.l.a; try comp.unix.shell)
Simply said; arguments with whitespace that are quoted will keep
their whitespace with "$@[EMAIL PROTECTED]
" while they will be split in several
arguments wit $*
"filename with spaces.txt" -> "filename" "with" "spaces.txt"
with the apparent consequence that no file or the wrong files will
be matched.
Janis