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

2013-01-16 Thread Chet Ramey
On 1/15/13 11:30 AM, DJ Mills wrote: > 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 I believe this is the bug: set -o posix readonly a=0 a=1 command : 2>/dev/null # or use true in place of c

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

2013-01-16 Thread douxin
On 01/16/2013 01:59 AM, Dan Douglas wrote: Oops nevermind, I see the issue now. Couldn't reproduce here either. Neither with compat modes nor the real versions. Thanks for your help any way it seems to remain a problem

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

2013-01-15 Thread Dan Douglas
Oops nevermind, I see the issue now. Couldn't reproduce here either. Neither with compat modes nor the real versions. -- Dan Douglas

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

2013-01-15 Thread Dan Douglas
On Tuesday, January 15, 2013 11:51:28 AM Greg Wooledge wrote: > On Tue, Jan 15, 2013 at 11:30:39AM -0500, DJ Mills wrote: > > 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 > > I thought

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

2013-01-15 Thread Greg Wooledge
On Tue, Jan 15, 2013 at 11:30:39AM -0500, DJ Mills wrote: > 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 I thought that was what it meant, too, but I couldn't reproduce the "bug" that it was c

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

2013-01-15 Thread DJ Mills
On Mon, Jan 14, 2013 at 10:03 PM, douxin 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 err

about one feature in V4.2 against V4.1

2013-01-14 Thread douxin
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 n