[Bug 4027] New: wrong list of argument for program execution in hush under some circumstances

bugzilla at busybox.net bugzilla at busybox.net
Fri Jul 29 09:20:48 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=4027

           Summary: wrong list of argument for program execution in hush
                    under some circumstances
           Product: Busybox
           Version: 1.18.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: richard.genoud at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


here's a test.c:
#include <stdio.h>
int main(int argc, char **argv)
{
    while(--argc) {
        printf("arg%d=|%s|\n", argc, argv[argc]);
    }
    return 0;
}

old behaviour:
BusyBox v1.15.3 (2011-07-12 09:44:37 CEST) hush - the humble shell
/tmp # foo=" a "
/tmp # bar=" b "
/tmp # ./test.ppc $foo $bar
arg2=|b|
arg1=|a|
/tmp # 

new behaviour:
BusyBox v1.18.5 (2011-07-27 10:16:21 CEST) hush - the humble shell
/tmp # foo=" a "
/tmp # bar=" b "
/tmp # ./test $foo $bar
arg4=|b|
arg3=||
arg2=|a|
arg1=||
/tmp #

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list