On Tue, 13 Oct 2009 12:35:39 +0800
"Teh Kok How" <[email protected]> wrote:
> Hi;
> I have built util-linux's gawk for comparison and the result
> is the same. I suspect it has to do with ASH. Which shell did you use
> in your testing?
Could actually be true...
> [r...@smartbridges:~ 1]# gawk -F: '{ print $1 }' /etc/passwd
> root:x:0:0:root:/root:/bin/sh
> [r...@smartbridges:~ 1]# echo $SHELL
> /bin/sh
> [r...@smartbridges:~ 1]# echo $TERM
> xterm
> [r...@smartbridges:~ 1]# awk -F: '{ print $1 }' /etc/passwd
> root:x:0:0:root:/root:/bin/sh
> [r...@smartbridges:~ 1]# busybox awk -F: '{ print $1 }' /etc/passwd
> root:x:0:0:root:/root:/bin/sh
> [r...@smartbridges:~ 1]#
... if $1 is expanded even thout it should not, because you quoted it
correctly.
What does
echo '"$1"'
give on this system?
--
Stefan Seyfried
"Any ideas, John?"
"Well, surrounding them's out."
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox