Re: question of command cd's option [-e]

2013-01-15 Thread Chet Ramey
On 1/14/13 9:20 PM, MaShimiao wrote: > Bash Version: 4.2 > Patch Level: 28 > Release Status: release > > Description: > > I want to use the option [-e] of command cd. But I found I can't use. Thanks for the report, good catch. This will be fixed in the next release. Chet -- ``The lyf so sho

Re: question of command cd's option [-e]

2013-01-15 Thread Andreas Schwab
I'd also suggest to simplify the synopsis. cd [-LPe] [dir] Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

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

Re: question of command cd's option [-e]

2013-01-15 Thread DJ Mills
On Tue, Jan 15, 2013 at 9:19 AM, Andreas Schwab wrote: > I'd also suggest to simplify the synopsis. > > cd [-LPe] [dir] > > Andreas. > > > -e is only used with -P, so the current synopsis makes more sense and is clearer, IMO. DJ

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: question of command cd's option [-e]

2013-01-15 Thread Andreas Schwab
DJ Mills writes: > -e is only used with -P, so the current synopsis makes more sense and is > clearer, IMO. You can use -e also with -L, it just doesn't have an effect. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "

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 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: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements)

2013-01-15 Thread John Kearney
Am 14.01.2013 21:12, schrieb Chet Ramey: > On 1/14/13 2:57 PM, John Kearney wrote: > >> I have no idea why errexit exists I doubt it was for lazy people >> thought. its more work to use it. > I had someone tell me one with a straight (electronic) face that -e > exists `to allow "make" to work as ex