On Thu, 2009-11-12 at 16:57 +0300, Vladimir Dronnikov wrote:
> >
> > Using export -n or unset?
> >
> 
> I need command to effectively perform clearenv(), to unset all vars at
> once ( that's why I tried "env -" :). Is there such in the nature?
No, no one really wants to delete/unexport *all* environment variables
as that includes $HOME and $PATH (to name 2 that come immediately to my
mind).
FWIW
---- snip  ----
unset $(env | sed -e 's/=.*//')
---- snip  ----
does the trick (in a bash). Similar should be doable for other shells.

        Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services


_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to