On May 20, 2001, "Bernhard R. Erdmann" <[EMAIL PROTECTED]> wrote:

>> #! /bin/sh
>> X=; export X
>> exec $0.exe ${1+"$@"}

> What is ${1+"$@"} good for? Never seen that construction before...

Some shells expand "$@" to "" when $# = 0.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to