public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Klotzbücher" <mk@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Delete all env vars except read onlys
Date: Wed, 13 Feb 2008 13:55:26 +0100	[thread overview]
Message-ID: <87tzkdqam9.fsf@denx.de> (raw)
In-Reply-To: <m23arxun23.fsf@ohwell.denx.de> (Detlev Zundel's message of "Wed\, 13 Feb 2008 12\:13\:08 +0100")


Detlev Zundel <dzu@denx.de> writes:

>> Stefan Roese <sr@denx.de> writes:
>>
>>> On Wednesday 13 February 2008, Markus Klotzb?cher wrote:
>>>> > => 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.
>>>
>>> Sure. But not by "just" typing one command. Or at least I don't know those 
>>> kind of destructive commands.
>>
>> It need not be a single one, it could be a script. For instance, I once
>> ran an "update" script without checking that _my_ version of U-Boot
>> would be used. It used some ancient version which turned the board
>> (temporarily) into a doorstop.
>>
>> Stupid? Yes! But would such checks (e.g. to "mw") have avoided the
>> problem?  I doubt it. Probably I'd just have typed "yes" without
>> checking.
>>
>> BTW, after accidentally erasing the environment variables U-Boot will
>> (likely) still start up, so it's really not that critical, is it?
>
> 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"...

Yeah, why not both. That's fine with me!

Best regards

Markus Klotzb?cher

--
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

  reply	other threads:[~2008-02-13 12:55 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  8:44 [U-Boot-Users] Delete all env vars except read onlys Matthias Fuchs
2008-02-12 14:49 ` Stefan Roese
2008-02-12 22:55   ` Wolfgang Denk
2008-02-13  8:21   ` Matthias Fuchs
2008-02-13  8:56     ` Stefan Roese
2008-02-13  9:18       ` Matthias Fuchs
2008-02-13 10:02     ` Markus Klotzbücher
2008-02-13 10:13       ` Stefan Roese
2008-02-13 10:33         ` Markus Klotzbücher
2008-02-13 11:13           ` Detlev Zundel
2008-02-13 12:55             ` Markus Klotzbücher [this message]
2008-02-13 12:58               ` Stefan Roese
2008-02-13 22:43             ` Wolfgang Denk
2008-02-13 22:49               ` Scott Wood
2008-02-13 23:03                 ` Wolfgang Denk
2008-02-13 23:04                   ` Scott Wood
2008-02-13 23:11                     ` Wolfgang Denk
2008-02-15 15:37                       ` Detlev Zundel
2008-02-13 22:40         ` Wolfgang Denk
2008-02-13 22:50           ` Scott Wood
2008-02-13 23:05             ` Wolfgang Denk
2008-02-14  5:20             ` Stefan Roese
2008-02-14  7:44               ` Wolfgang Denk
2008-02-15 15:52                 ` Detlev Zundel
2008-02-15 16:11                   ` Wolfgang Denk
2008-02-15 16:40                   ` Wolfgang Denk
2008-02-15 17:12                     ` Markus Klotzbücher
2008-02-15 20:27                     ` Jean-Christophe PLAGNIOL-VILLARD
2008-02-20 21:17                       ` Matthias Fuchs
2008-02-20 21:30                         ` Ulf Samuelsson
2008-02-21  0:04                           ` Wolfgang Denk
2008-02-22 12:00                         ` Wolfgang Denk
2008-02-18  9:41                     ` Martin Krause
2008-03-25 21:10                     ` Wolfgang Denk
2008-02-13 22:38     ` Wolfgang Denk
2008-02-12 22:38 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tzkdqam9.fsf@denx.de \
    --to=mk@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox