Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!pyrltd!root44!gwc From: gwc@root.co.uk (Geoff Clare) Newsgroups: comp.unix.shell Subject: Re: ksh prompt Message-ID: <2648@root44.co.uk> Date: 7 Mar 91 13:13:43 GMT References: <1772@brchh104.bnr.ca> <1991Feb28.173758.21195@en.ecn.purdue.edu> <57517@mcdchg.chg.mcd.mot.com> <1991Mar4.133215.12269@cbnews.att.com> Organization: UniSoft Ltd., London, England Lines: 15 lvc@cbnews.att.com (lawrence.v.cipriani) writes: >Why not use "${@:-''}" instead of ${*:-''} ? Neither of these correctly preserve the argument list. In fact "${@:-''}" will pass two single quotes when there are no arguments, so it's even worse than plain "$@" which just passes an empty string. The only way (as far as I'm aware) to get it right in all cases is: ${1+"$@"} -- Geoff Clare (Dumb American mailers: ...!uunet!root.co.uk!gwc) UniSoft Limited, London, England. Tel: +44 71 729 3773 Fax: +44 71 729 3273