Dmitry V. Levin wrote:
On Mon, Apr 21, 2008 at 10:06:10AM +0200, Andreas Schwab wrote:
Dmitry V. Levin writes:
I wonder whether such difference in parameter expansion is valid:
$ env -i sh -c 'fun() { echo "[${*#foo }]"; }; fun foo bar'
[foo bar]
$ env -i sh -c 'fun() { echo "[${*#foo}]"; };
On Mon, Apr 21, 2008 at 10:06:10AM +0200, Andreas Schwab wrote:
> Dmitry V. Levin writes:
>
> > I wonder whether such difference in parameter expansion is valid:
> >
> > $ env -i sh -c 'fun() { echo "[${*#foo }]"; }; fun foo bar'
> > [foo bar]
> > $ env -i sh -c 'fun() { echo "[${*#foo}]"; }; fun
"Dmitry V. Levin" <[EMAIL PROTECTED]> writes:
> I wonder whether such difference in parameter expansion is valid:
>
> $ env -i sh -c 'fun() { echo "[${*#foo }]"; }; fun foo bar'
> [foo bar]
> $ env -i sh -c 'fun() { echo "[${*#foo}]"; }; fun foo bar'
> [ bar]
Works as documented:
`${PARAMETER#WO
Hi,
I wonder whether such difference in parameter expansion is valid:
$ env -i sh -c 'fun() { echo "[${*#foo }]"; }; fun foo bar'
[foo bar]
$ env -i sh -c 'fun() { echo "[${*#foo}]"; }; fun foo bar'
[ bar]
$ sh --version
GNU bash, version 3.2.33(1)-release (x86_64-alt-linux-gnu)
Copyright (C) 200