From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 13 Feb 2008 16:49:58 -0600 Subject: [U-Boot-Users] Delete all env vars except read onlys In-Reply-To: <20080213224355.C6F7024050@gemini.denx.de> References: <20080213224355.C6F7024050@gemini.denx.de> Message-ID: <47B37416.8090708@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > In message you wrote: >> Why not do both? Unix untilities do it sometimes this way: Use an >> interactive check for "scrubenv" but allow "scrubenv -force" not to >> ask. As many of the U-Boot users know Unix, this would follow from >> the "principle of least surprise"... > > That would be exactly the other way round, i. e. provide an optional > "-i" argument like "rm *" is doing in Unix. > > The default shall be not to ask any questions. rm defaults to not asking questions in *some* cases, but to asking in others. Hence the -f flag to rm. -Scott