exporting argc/argv to applets

Bernhard Fischer rep.nop at aon.at
Sun Jul 2 13:36:54 UTC 2006


Hi,

FYI, I've been pondering ¹) landley's suggestion to export argc
and argv globally, so we wouldn't have to pass it around as arguments.

>From a cursory look, this doesn't seem to be a good idea, though:
   text	   data	    bss	    dec	    hex	filename
 862418	  10156	 644740	1517314	 172702	busybox.old
 865586	  10156	 644708	1520450	 173342	busybox

Could very well be that i did something wrong/incomplete, admittedly.

¹) http://busybox.net/~aldot/bb/bb.argc.00g.diff
  Is completely untested and most likely breaks at least the shells in
  subtle ways.



More information about the busybox mailing list