
24 Feb
2010
24 Feb
'10
12:02 a.m.
On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote:
* Anthony Cowley
[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. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH