[U-Boot-Users] Delete all env vars except read onlys

Matthias Fuchs matthias.fuchs at esd-electronics.com
Wed Feb 20 22:17:57 CET 2008


Hi, 

yes, I can live with the 'env' command, too. Sound's good to me.

Matthias

On Friday 15 February 2008 21:27:20 Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 17:40 Fri 15 Feb     , Wolfgang Denk wrote:
> > Uff....
> >
> > After a longish  discussion  with  Detlev  we  came  up  with  a  new
> > proposal,  which  hopefully  is  acceptable  to all. We agreed that a
> > command name like "clearenv" or "scrubenv" or similar (which  doesn't
> > require  any  arguments) might be too dangerous for the unexperienced
> > user why randomly types commands "just  to  see  what  happens".  For
> > example,  even  if you type "erase" it will not do any damage because
> > arguments are missing - but "erase all" will blow away most  of  your
> > flash content without asking.
> >
> > So the idea is to call the new command "environment" (or short "env");
> > usage would be then:
> >
> > 	=> env clear
> >
> > to clear the envrionment (except read-only variables); thsi also
> > allows for pretty useful additional functionality like this:
> >
> > 	=> env default
> >
> > to reset the environment to the (compiled in) default settings.
> >
> > One might even consider something like
> >
> > 	=> env clear all
> >
> > to blow away the whole env, including the read-only variables.
> >
> >
> > Would that be acceptable to everybody?
>
> Ack-By : Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
>
> Best Regards,
> J.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users






More information about the U-Boot mailing list