At Fri, 14 Jun 2002 01:05:22 +1000, Matthew Hannigan wrote:
> Not that it matters in this particular
> case, but often it is more pedantically
> correct to use "$@" rather than "$*".

and thats `"$@"', not just "$@"..

as in:  for i in "$@"; do ...; done
   or:  exec cmd "$@"

compare these:

 set - "a  b c" d "e f"; for i in "$@"; do echo "$i"; done
 set - "a  b c" d "e f"; for i in  $@ ; do echo "$i"; done
 set - "a  b c" d "e f"; for i in "$*"; do echo "$i"; done
 set - "a  b c" d "e f"; for i in  $* ; do echo "$i"; done

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to