[BusyBox 0004094]: The sh "continue" statement doesn't work

bugs at busybox.net bugs at busybox.net
Mon Jul 14 21:51:48 PDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=4094 
====================================================================== 
Reported By:                jo
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   4094
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             07-14-2008 15:48 PDT
Last Modified:              07-14-2008 21:51 PDT
====================================================================== 
Summary:                    The sh "continue" statement doesn't work
Description: 
When I run this script:

#!/bin/sh

while true; do
        sleep 1
        for iter in 1 2 ; do   
                echo one
                continue
                echo two
        done
done

I get this output:

one
one
one
PX: not found
two
one
PX: not found
two
one
SIGSEGV

The details will vary depending on the number of items in the for loop.


====================================================================== 

---------------------------------------------------------------------- 
 jo - 07-14-08 15:50  
---------------------------------------------------------------------- 
Whoops, forgot to mention, this is running on MIPS.

 

---------------------------------------------------------------------- 
 vda - 07-14-08 21:51  
---------------------------------------------------------------------- 
Current svn:

# ./busybox ash z
one
one
one
one
one
one
one
one
^C
# ./busybox msh z
one
one
one
one
one
one
^C
# ./busybox hush z
one
hush: cannot exec 'continue': No such file or directory
two
one
hush: cannot exec 'continue': No such file or directory
two
one
hush: cannot exec 'continue': No such file or directory
two
one
hush: cannot exec 'continue': No such file or directory
two
^C 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-14-08 15:48  jo             New Issue                                    
07-14-08 15:48  jo             Status                   new => assigned     
07-14-08 15:48  jo             Assigned To               => BusyBox         
07-14-08 15:49  jo             Note Added: 0009274                          
07-14-08 15:50  jo             Note Edited: 0009274                         
07-14-08 15:50  jo             Issue Monitored: jo                          
07-14-08 21:51  vda            Note Added: 0009284                          
======================================================================



More information about the busybox-cvs mailing list