On Saturday 07 June 2008 19:19, Martinb_ARM_NOMMU_KISSDVD wrote: > I have the following script: > > ---------------------------------------------------- > #!/bin/hush > > if false > then > echo "test line 1" > tmp=`ping -justawrongoption 127.0.0.1` > fi > ---------------------------------------------------- > > if i execute i get: > > /hdd/bustest # ./test.sh > ping: illegal option -- j > BusyBox v1.10.0 (2008-04-23 23:53:40 CEST) multi-call binary > > Usage: ping [OPTION]... host > > Send ICMP ECHO_REQUEST packets to network hosts > > Options: > -4, -6 Force IPv4 or IPv6 hostname resolution > -c CNT Send only CNT pings > -s SIZE Send SIZE data bytes in packets (default=56) > -I iface/IP Use interface or IP address as source > -q Quiet, only displays output at start > and when finished > > > (i understand that i cant use the -justawongoption, but its just for > testing) > > The result is wrong > it should never run the 2e line "tmp=`ping -justawongoption 127.0.0.1` > > is this a know bug?
Yes :( I added it to hush testsuite for now -- vda _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
