* Brandon S. Allbery KF8NH <allb...@ece.cmu.edu> [2010-02-24 00:02:12-0500]
> On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote:
> >* Anthony Cowley <acow...@seas.upenn.edu> [2010-02-21 14:15:00-0500]
> >>#! /usr/bin/env bash
> >>./prog --RTS $*
> >
> > ./prog --RTS "$@"
> >
> >Otherwise it will work wrong if arguments contain quoted field
> >separators (e.g. spaces).
> 
> 
>   #! /bin/sh
>   ./prog --RTS ${1+"$@"}
> 
> The longer specification above should work with whatever /bin/sh is
> around, whether it's Solaris /sbin/sh, FreeBSD's sh, general Linux
> bash, Debian/Ubuntu dash, etc.

Are you referring to some Solaris shell bug?

Under POSIX these constructs seem to be equivalent.
"If there are no positional parameters, the expansion of '@' shall
generate zero fields, even when '@' is double-quoted."

-- 
Roman I. Cheplyaka :: http://ro-che.info/
"Don't let school get in the way of your education." - Mark Twain
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to