variable assignment / command substitution

Ryan Raasch ryan.raasch at gmail.com
Tue Jan 15 20:52:30 UTC 2008


Hello,

I am using busybox v1.9.0, and I am trying to parse the /proc/cmdline, but
the command substitutions/variable assignments do not seem to work

     cat /proc/cmdline | grep nfsroot

within a shell script (using ash), the above works, but when i do the
following


     NFSROOT=`cat /proc/cmdline | grep nfsroot`
     echo $NFSROOT

it does NOT work, i.e. nothing is assigned to NFSROOT.

Everything works on the host machine (bash). Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20080115/d9299cdb/attachment-0002.htm 


More information about the busybox mailing list