bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change in behavior


From: Greg Wooledge
Subject: Re: Change in behavior
Date: Tue, 13 Dec 2016 10:21:07 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Dec 13, 2016 at 09:16:12AM -0600, Eduardo Bustamante wrote:
> On Tue, Dec 13, 2016 at 9:08 AM, Vladimir Marek
> <address@hidden> wrote:
> [...]
> > $ cat configure
> > set -o posix
> > echo ${0.8}
> > echo after
> >
> > $ bash a.sh
> > 3.2.52(1)-release
> > a.sh: line 3: ${0.8}: bad substitution
> > after
> Is `a.sh' a copy of `configure'?

I figured he simply lied about all of his "pasted terminal output".
Notice how the pathname spat out as $0 keeps changing too.

Nonetheless, the result can be reproduced, but only in posix mode.

imadev:~$ bash-4.3 -posix -c $': ${0.8}\necho after'
bash-4.3: ${0.8}: bad substitution
after
imadev:~$ bash-4.4 -posix -c $': ${0.8}\necho after'
bash-4.4: ${0.8}: bad substitution
imadev:~$ 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]