From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus =?utf-8?Q?Klotzb=C3=BCcher?= Date: Wed, 13 Feb 2008 11:02:10 +0100 Subject: [U-Boot-Users] Delete all env vars except read onlys In-Reply-To: <200802130921.38894.matthias.fuchs@esd-electronics.com> (Matthias Fuchs's message of "Wed\, 13 Feb 2008 09\:21\:38 +0100") References: <200802120944.42632.matthias.fuchs@esd-electronics.com> <200802121549.49402.sr@denx.de> <200802130921.38894.matthias.fuchs@esd-electronics.com> Message-ID: <87abm5jhst.fsf@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Matthias Fuchs writes: > what about a 'scrubenv' or 'cleanenv' command that tries to unset all > variables leaving readonlys untouched. > > The command could request a confirmation: > > => scrubenv > Do you really want to do this ('yes' or 'no')? yes Such a confirmation is not very Unix-like and will prevent this command to be used in scripts. I like the idea of a scrubenv/resetenv command but vote for leaving out the confirmation. U-Boot provides many, much more serious ways to blow you foot off which don't ask such questions. Best regards Markus Klotzbuecher -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de