bug-bash
[Top][All Lists]
Advanced

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

about one feature in V4.2 against V4.1


From: douxin
Subject: about one feature in V4.2 against V4.1
Date: Tue, 15 Jan 2013 11:03:31 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

Hello:
i am from China and i am working on investigating the difference between bash V4.2 and V4.1

    according to official log there is a new feature description

"Posix mode shells no longer exit if a variable assignment error occurs with an assignment preceding a command that is not a special builtin"

    i wrote a script saved as "test.sh"

    readonly a=3
    a=2
    echo "this is incorrect."

and i wanted to demonstrate the different behavior on bash V4.1 and V4.2

    but i tried all below,there was no difference

    1) set -o posix then ran the script
    2) bash --posix test.sh
    3) sh test.sh

i appreciate if you can tell me what's the problem and how to demonstrate the new feature against V4.1

    sorry for my disturbance

    Dou




reply via email to

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