[BusyBox 0001149]: Problem with "[" command used internal to busybox ash

bugs at busybox.net bugs at busybox.net
Wed Jan 10 00:25:09 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1149 
====================================================================== 
Reported By:                espakman
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1149
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             01-09-2007 13:39 PST
Last Modified:              01-09-2007 16:25 PST
====================================================================== 
Summary:                    Problem with "[" command used internal to busybox
ash
Description: 
Ash revision 17084 introduced a problem with (at least) the "[" command
when configured internal to ash. When I use the following snippet in
linuxrc:

#!./busybox sh

#DEBUG=1

if [ $DEBUG ] ; then
        echo "test"
fi

The response with revision 17084 is:
/linuxrc: /linuxrc: 37: [: not found

(37 being the line number)

The attached small patch reverses a small part of the 17084 patch and
fixes the problem.

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

---------------------------------------------------------------------- 
 bernhardf - 01-09-07 13:46  
---------------------------------------------------------------------- 
http://busybox.net/lists/busybox/2007-January/025810.html 

---------------------------------------------------------------------- 
 vda - 01-09-07 16:25  
---------------------------------------------------------------------- 
Applied in revision 17216, thanks 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-09-07 13:39  espakman       New Issue                                    
01-09-07 13:39  espakman       Status                   new => assigned     
01-09-07 13:39  espakman       Assigned To               => BusyBox         
01-09-07 13:40  espakman       File Added: busybox-ash.patch                    
01-09-07 13:46  bernhardf      Note Added: 0001975                          
01-09-07 16:25  vda            Status                   assigned => closed  
01-09-07 16:25  vda            Note Added: 0001978                          
======================================================================




More information about the busybox-cvs mailing list