[BusyBox 0000922]: msh doesn't forward arguments with '=' to scripts
bugs at busybox.net
bugs at busybox.net
Tue Feb 12 10:12:42 UTC 2008
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=922
======================================================================
Reported By: falk
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 922
Category: Standards Compliance
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 06-21-2006 23:01 PDT
Last Modified: 02-12-2008 02:12 PST
======================================================================
Summary: 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
======================================================================
----------------------------------------------------------------------
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
======================================================================
More information about the busybox-cvs
mailing list