Subject: Re: bin/33956: -current /bin/sh possible regression
To: None <current-users@NetBSD.org, gnats-bugs@NetBSD.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 07/11/2006 19:38:20
In message <20060712001618.GC923@falu.nl>, Rhialto writes:
>Even if one argued that "Testing ${@} fnord" is a meaningful
>substitution, then according to the above definition, it should produce
>zero arguments if there are no positional parameters. Yet,
>
>    sh -c 'foo() { echo "Testing ${@} fnord"; }; foo'
>
>produces (on 3.0)
>
>    Testing  fnord
>
>which I must consider a bug.

Why?  The @ expanded to nothing, as expected.  It doesn't prevent other
variables from expanding, or other text from continuing to exist.

-s