Bug#332954: dash: return from a while condition loses exit status

2005-11-14 Thread Herbert Xu
On Wed, Nov 09, 2005 at 01:56:01PM +, Gerrit Pape wrote: All other POSIX shells behave like that. http://www.opengroup.org/onlinepubs/009695399/utilities/return.html It is definitely a bug to me. I've not tested it, but I had had Actually, it's not as simple as that. The

Bug#332954: dash: return from a while condition loses exit status

2005-11-09 Thread Gerrit Pape
reopen 332954 tags 332954 + patch quit Hi Herbert, please see http://bugs.debian.org/332954 On Tue, Nov 08, 2005 at 11:53:03AM +, Stephane Chazelas wrote: The SUSv3sections you refer to speak of the exit status of the while loops. That doesn't apply in my script example where I talk of

Bug#332954: acknowledged by developer (Re: Bug#332954: dash: return from a while condition loses exit status)

2005-11-08 Thread Stephane Chazelas
On Fri, Nov 04, 2005 at 11:36:02AM -0800, Debian Bug Tracking System wrote: [...] It has been closed by one of the developers, namely Gerrit Pape [EMAIL PROTECTED] (reply to [EMAIL PROTECTED]). [...] On Sun, Oct 09, 2005 at 07:55:19PM +0100, Stephane Chazelas wrote: f() { while return

Bug#332954: dash: return from a while condition loses exit status

2005-10-10 Thread Gerrit Pape
On Sun, Oct 09, 2005 at 07:55:19PM +0100, Stephane Chazelas wrote: f() { while return 2; do :; done } f echo $? The above script outputs 0 while it should output 2. Same goes for: dash -c 'while return 2; do :; done' Same with until instead of while Hi Stephane, I think the

Bug#332954: dash: return from a while condition loses exit status

2005-10-09 Thread Stephane Chazelas
Package: dash Version: 0.5.2-7 Severity: normal f() { while return 2; do :; done } f echo $? The above script outputs 0 while it should output 2. Same goes for: dash -c 'while return 2; do :; done' Same with until instead of while -- System Information: Debian Release: testing/unstable