From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 15 Feb 2008 21:27:20 +0100 Subject: [U-Boot-Users] Delete all env vars except read onlys In-Reply-To: <20080215164010.2944E24D11@gemini.denx.de> References: <20080215164010.2944E24D11@gemini.denx.de> Message-ID: <20080215202720.GB4599@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Best Regards, J.