Re: Package maintainer script policy.
In article <firstname.lastname@example.org>,
Raul Miller <email@example.com> wrote:
>Manoj Srivastava <firstname.lastname@example.org> wrote:
>> Well, if $@ is empty, "$@" expands to "";
>Is this mandated by the posix standard?
The last time I read the standard for shell & utilities completely (which
is admittedly a few years ago) I was implementing a Posix shell myself.
And "$@" should expand to _nothing_ if $@ is empty, not "".
>If so, this is an example of
>how debian's current /bin/sh is not posix. If not, then this is
>just plain bogus.
if [ "$LOOP" = 1 ]
echo "\$@: $@, \$#: $#"
bash: $@: , $#: 0
ash : $@: , $#: 0
zsh : $@: , $#: 0
Miquel van Smoorenburg | Our vision is to speed up time,
email@example.com | eventually eliminating it. <*>
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com