BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002924 [BusyBox] New Features feature always 04-14-08 13:17 04-14-08 15:58
Reporter kiltedknight View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0002924: ash does not parse "${varname:begin:end}" for substring creation/checking
Description The shell construct:

${varname:begin:end} does not produce the substring of $varname starting at begin and going to end.

example:

#!/bin/ash

mystr="This is a string"
echo $mystr
mysubstr=${mystr:0:4}
echo $mysubstr
#end of example

Expected output:
This is a string
This

Actual output:
This is a string
./testscript: line 5: syntax error: Bad substitution


Additional Information This is necessary for self-hosted builds and testing.
Attached Files

- Relationships

- Notes
(0006634)
vapier
04-14-08 14:47

substring's are a bashism ... they are not part of any standard

i dont think we should go adding bashism's to ash
 
(0006644)
vda
04-14-08 15:58

Fixed in svn, will appear in 1.11.0:

# ./busybox ash z
This is a string
This
 

- Issue History
Date Modified Username Field Change
04-14-08 13:17 kiltedknight New Issue
04-14-08 13:17 kiltedknight Status new => assigned
04-14-08 13:17 kiltedknight Assigned To  => BusyBox
04-14-08 14:47 vapier Note Added: 0006634
04-14-08 14:47 vapier Severity major => feature
04-14-08 14:47 vapier Category Standards Compliance => New Features
04-14-08 14:52 madscientist Issue Monitored: madscientist
04-14-08 15:58 vda Status assigned => closed
04-14-08 15:58 vda Note Added: 0006644
04-14-08 15:58 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker