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
0000922 [BusyBox] Standards Compliance minor always 06-21-06 23:01 02-12-08 02:12
Reporter falk View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0000922: msh doesn't forward arguments with '=' to scripts
Description I've got a couple of scripts using an arg=val scheme.

I found the script "argtest"
#!/bin/msh
echo $# $0 $1 $2 $3 $4 $5

called with argtest one two=2
should give as a result: 2 ./argtest one two=2
with msh I get:
1 ./argtest one

only ./argtest one 'two\=three'
gives the expected result. Quoting is not an option for me as the arguments are passed to another script

I'm not sure if it was a bug or a feature to ignore arguments with "=" but the following changes fixed the thing for me. At a glance the assign() call is only there to check if there might be an assignment, not to actually create the vars internally...

Didn't check too much for side effects...

Should be cross checked by someone with more knowledge about the msh internals.

Falk
Additional Information
Attached Files  msh.c.patch [^] (496 bytes) 06-21-06 23:01

- Relationships

- Notes
(0004124)
vda
02-12-08 02:12

Fixed in rev 20992. Thanks!
 

- Issue History
Date Modified Username Field Change
06-21-06 23:01 falk New Issue
06-21-06 23:01 falk Status new => assigned
06-21-06 23:01 falk Assigned To  => BusyBox
06-21-06 23:01 falk File Added: msh.c.patch
02-12-08 02:12 vda Status assigned => closed
02-12-08 02:12 vda Note Added: 0004124
02-12-08 02:12 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker