[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: alias for commands broken in bash 2.05.0
From: |
Sven Mascheck |
Subject: |
Re: alias for commands broken in bash 2.05.0 |
Date: |
8 Aug 2001 19:29:04 +0200 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.8 (sun4u)) |
Paul Jarc <prj@po.cwru.edu> wrote:
> In the case of bash, it's the same as "$@". But some other shells
> expand "$@" to "" (a single empty string) when there are no arguments;
> all shells expand ${1+"$@"} to nothing when there are no arguments, so
> it's a good habit to get into.
AFAIK, (only) older versions of the bourne shell have this bug,
see more details & examples in ``${1+"$@"}'', comp.unix.shell.