From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Mon, 23 Apr 2007 18:14:28 -0500 Subject: [U-Boot-Users] RFC: hidden environment variables In-Reply-To: <20070423220522.46E92353414@atlas.denx.de> References: <20070423220522.46E92353414@atlas.denx.de> Message-ID: <462D3DD4.2090500@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: > If you don't want to break compatibility with existing systems you > ill have to maintain a separate list anyway - either in the source > code, or in the environment ;-) Well, the point behind having hidden variables is that the source code which needs to use a hidden variable can just call _do_setenv() (or whatever) and have it set an environment variable that is hidden. My preference would be that any variable that starts with a dot (.) is hidden. That way, the source code doesn't really need to have a separate list. It just names its variables with a dot. The rest is automatic. -- Timur Tabi Linux Kernel Developer @ Freescale