[Toybox] [Shell] - RAW argv inputs to the command

Ashwini Sharma ak.ashwini at gmail.com
Thu Nov 15 20:38:48 PST 2012


Hi Rob,

 As mentioned in the docs, *toys.argv* contains the original (raw) command
line options.
But in *main()* function in main.c you are trimming the argv[0] to only the
command name.

I have an use case, where the entire argv[0] is required. It is in the case
when I want to launch the
*shell* with '-' in front, to denote it as login shell. Since argv[0] is
trimmed, I do not get the complete
argument value at my command_main() function.

What are your plans of handling this case in *shell *implementation?

regards,
Ashwini Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20121116/ad040cd5/attachment-0005.htm>


More information about the Toybox mailing list