All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RFC: hidden environment variables
Date: Mon, 23 Apr 2007 18:19:28 -0500	[thread overview]
Message-ID: <462D3F00.10103@freescale.com> (raw)
In-Reply-To: <20070423221354.DE2BC353414@atlas.denx.de>

Wolfgang Denk wrote:

Obviously, at this point you're not going to allow support for hidden variables, so this 
discussion is academic.  With that in mind ...

> You don't  expose  two  user  interfaces.  Make  it  clear  from  the
> documentation  that  the  user is not supposed to manually chage this
> variable. 

I don't like the idea of an environment variable that the user can edit but shouldn't. 
Every times the user does 'print', it shows up.  "Look, but don't touch" is not a good 
user interface paradigm.

> Heck, if you really want then make it difficult by using  a
> non-printing  character in the variable name. But please don't try to
> tell your users that you know better than they what's good for them.

If I write code that stores data in an internal format, especially one that's subject to 
change, of course I know better than the user what's good for him.  If the user 
manipulates the data incorrectly when he's been told (via the documentation) not to touch 
it, then the code is just exposing itself to more crashes.

> The user will probably not care much about  a few more cryptic
> environment variables. And you don't have to support setenv.

How do I not support setenv() if the data is in an environment variable?  If the variable 
I need is called "jumpers", then what's to stop the user from just doing "setenv jumpers 
'blablabla'" and breaking my code?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

  reply	other threads:[~2007-04-23 23:19 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 16:46 [U-Boot-Users] RFC: hidden environment variables Timur Tabi
2007-04-23 17:29 ` Grant Likely
2007-04-23 18:47 ` Ulf Samuelsson
2007-04-23 19:22 ` Wolfgang Denk
2007-04-23 20:28   ` Scott Wood
2007-04-23 21:51     ` Wolfgang Denk
2007-04-23 23:20       ` Timur Tabi
2007-04-24  0:12         ` Wolfgang Denk
2007-04-24 18:58           ` Rune Torgersen
2007-04-23 19:28 ` Ben Warren
2007-04-23 19:32   ` Ulf Samuelsson
2007-04-23 19:39     ` Ben Warren
2007-04-23 19:45       ` Timur Tabi
2007-04-23 19:53         ` Ben Warren
2007-04-23 21:49           ` Timur Tabi
2007-04-23 22:04             ` Ben Warren
2007-04-23 21:37         ` Wolfgang Denk
2007-04-23 21:56           ` Timur Tabi
2007-04-23 22:13             ` Wolfgang Denk
2007-04-23 23:19               ` Timur Tabi [this message]
2007-04-24  0:06                 ` Wolfgang Denk
2007-04-23 21:34     ` Wolfgang Denk
2007-04-24  9:05     ` Ladislav Michl
2007-04-23 19:49   ` Scott Wood
2007-04-23 21:40     ` Wolfgang Denk
2007-04-23 19:50   ` Timur Tabi
2007-04-23 20:05     ` Jeff Mann
2007-04-23 21:46       ` Wolfgang Denk
2007-04-23 21:51       ` Timur Tabi
2007-04-23 22:05         ` Wolfgang Denk
2007-04-23 23:14           ` Timur Tabi
2007-04-23 23:52             ` Wolfgang Denk
2007-04-24 13:43               ` Truong, Loc
2007-04-23 21:43     ` 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=462D3F00.10103@freescale.com \
    --to=timur@freescale.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.