[Haskell-cafe] Re: [offtopic] UNIX Shell (was: GHC RTS question)
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Wed Feb 24 12:43:32 EST 2010
On Feb 24, 2010, at 02:18 , Roman Cheplyaka wrote:
>> #! /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."
s/Solaris/most commercial Unixes/ because making /bin/sh POSIX would
break too many things (unlike Linux/*BSD, they have to consider
backward compatibility; a concept that Linux in particular seems not
to comprehend).
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100224/f6db931f/PGP.bin
More information about the Haskell-Cafe
mailing list