Re: Package maintainer script policy.
In article <email@example.com>,
Raul Miller <firstname.lastname@example.org> wrote:
>Manoj Srivastava <email@example.com> 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,
firstname.lastname@example.org | eventually eliminating it. <*>
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org