ash incompatibility

Sergey Naumov sknaumov at gmail.com
Wed Sep 15 11:46:38 UTC 2010


It seems that it is because "/bin/busybox grep ..." is always at the
end of ps output, so there are 2 matches instead of one and grep
receives additional parameter. It is not ash error.

2010/9/15 Sergey Naumov <sknaumov at gmail.com>:
> Hello.
>
> I have tried to execute following command on busybox's ash:
> # ps | grep `fuser /dev/ttyS0`
>
> On host's (Debian 5.0.0) ash it results in normal output:
> # ash -c "ps | grep `fuser /dev/console`"
> 2002 root /usr/sbin/ledstats
>
> but on embedded system it prints
> # fuser /dev/ttyS0
> 902
> # ps -o pid,comm | grep 902
> 902 sh
> # ps | grep `fuser /dev/ttyS0`
> grep: 3809: No such file or directory
>
> Busybox config is attached. Bash compatibility is enabled.
>
> Sergey Naumov.
>


More information about the busybox mailing list