Re: "break" inside a while-condition

2012-09-11 Thread Chet Ramey
On 9/11/12 10:40 AM, Philippe Wang wrote: > Bash Version: 4.2 > Patch Level: 0 > Release Status: release > > Description: > "break" keyword inside a while-condition doesn't work as expected : it > breaks the wrong loop. > > > Repeat-By: > # 1) should raise a parsing error (but it doesn't)

Re: "break" inside a while-condition

2012-09-11 Thread Dan Douglas
On Tuesday, September 11, 2012 04:40:41 PM Philippe Wang wrote: > Repeat-By: > # 1) should raise a parsing error (but it doesn't) > while break ; true ; do true ; done This doesn't cause a parsing error in any shell I have to test with. I don't see why it would. > # 2) should break the o

"break" inside a while-condition

2012-09-11 Thread Philippe Wang
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: darwin12.0.0 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='darwin12.0.0' -DCONF_MACHTYPE='i386-apple-darwin12.0.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/alien/share/loca