Angus Lees wrote: > 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 "$@"..
Sorry, you've lost me there. > > 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 Yup. But do you know the magic incantation that you have to perform when passing on "$@" to subshells that I referred to in my mail? (only needed for non-Bash bourne compatibles) -Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
