Shell test or quoting mechanism breaks on parens
Dung_Nguyen at Dell.com
Dung_Nguyen at Dell.com
Mon May 19 22:02:48 UTC 2014
Dell - Internal Use - Confidential
Hello,
I used to use busybox 1.00 and this command line returns 0 or at least the output is the same as RHEL 5.3 shell:
# [ '(' = '(' ] ; rc=$? ; echo $rc ; [ $rc -ne 0 ] && echo EVIL SH TEST/QUOTE
0
However, after I upgraded to busybox 1.20.2 and I see different output:
# [ '(' = '(' ] ; rc=$? ; echo $rc ; [ $rc -ne 0 ] && echo EVIL SH TEST/QUOTE
sh: closing paren expected
2
EVIL SH TEST/QUOTE
Does anyone know why the output is different with busybox 1.00 or is this a security issue from cmd line ?
Thanks,
Dung Nguyen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140519/ff1fb4e8/attachment.html>
More information about the busybox
mailing list