On Tue, Dec 13, 2016 at 09:16:12AM -0600, Eduardo Bustamante wrote: > On Tue, Dec 13, 2016 at 9:08 AM, Vladimir Marek > <vladimir.ma...@oracle.com> 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:~$