[BusyBox] getenv/setenv problem

Royce Kemp rkemp at ip3.com
Wed May 4 21:01:35 UTC 2005


you can run your application IN the current shell by entering a '.' 
following by a space before the name of your program... example:

. yourprog

this will have the effect of running yourprog in the current shell. hope 
that helps.

-r


At 01:17 PM 5/4/2005, David Bruce wrote:
>I'm using busybox 1.00 ash shell. I create an environment variable before 
>I run an application. That application will get the environment variable 
>(getenv) and set it to something else (setenv), then check the change 
>(getenv). Then the application exits. When the application runs again the 
>previously changed environment variable is back to its original value.
>I'm assuming that the changed happened in the (sub)shell that is running 
>the application. Do I need to do something else to change an environment 
>variable in the starting shell?
>
>Thanks,
>Dave
>_______________________________________________
>busybox mailing list
>busybox at mail.busybox.net
>http://busybox.net/mailman/listinfo/busybox





More information about the busybox mailing list