bug-bash
[Top][All Lists]
Advanced

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

Re: about one feature in V4.2 against V4.1


From: DJ Mills
Subject: Re: about one feature in V4.2 against V4.1
Date: Tue, 15 Jan 2013 11:30:39 -0500

On Mon, Jan 14, 2013 at 10:03 PM, douxin <wq-doux@cn.fujitsu.com> wrote:

> 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
>
>
>
I believe that's referring to var=value command, as in the syntax to export
a variable into "command"s environment.

readonly a=3
a=2 echo foo


reply via email to

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