[BusyBox 0000922]: msh doesn't forward arguments with '=' to scripts
bugs at busybox.net
bugs at busybox.net
Thu Jun 22 06:01:24 UTC 2006
The following issue has been SUBMITTED.
======================================================================
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: assigned
======================================================================
Date Submitted: 06-21-2006 23:01 PDT
Last Modified: 06-21-2006 23:01 PDT
======================================================================
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
======================================================================
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
======================================================================
More information about the busybox-cvs
mailing list