bug-bash
[Top][All Lists]
Advanced

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

Change in behavior


From: Vladimir Marek
Subject: Change in behavior
Date: Tue, 13 Dec 2016 16:08:20 +0100
User-agent: Mutt/1.5.22.1-rc1 (2013-10-16)

Hi,

by coincidence I found change in behavior in how bash treats syntax
error. Can you see the difference on your machines too?

$ 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

$ bash a.sh
4.3.46(1)-release
build/i86/configure: line 3: ${0.8}: bad substitution
after

$ bash a.sh
4.4.5(1)-release
build/i86/configure: line 3: ${0.8}: bad substitution


I also tried on Gentoo and bash 4.4.5 didn't run the last line similarly
to my tests. Is it intended change?

Thank you
-- 
        Vlad



reply via email to

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