Angus Lees wrote: > as far as i can tell, "$@" should do the Right Thing on all POSIX > shells. > > for ancient shells, the usual magic incantation is ${1+"$@"}. this is > to make sure it expands to nothing (as in, not even "") when there are > no arguments. "$@" on POSIX shells should do that by itself.
I would hope so, but I'm fairly sure I've tried it on recent HP-UX and Solaris machines and it needed the ${1+"$@"} trick. Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug