From: Wolfgang Denk Date: Wed, 28 Sep 2011 23:08:09 +0200 Subject: [U-Boot] [PATCH 1/2] env: set individual variables to default In-Reply-To: <4E82E6CA.9030802@keymile.com> References: <1316703972-8417-1-git-send-email-gerlando.falauto@keymile.com> <1316703972-8417-2-git-send-email-gerlando.falauto@keymile.com> <20110922195134.543F21407979@gemini.denx.de> <4E7C35E6.5030808@keymile.com> <20110923095545.337E6140797A@gemini.denx.de> <4E82E6CA.9030802@keymile.com> Message-ID: <20110928210809.79CA6140799B@gemini.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 Dear Gerlando Falauto, In message <4E82E6CA.9030802@keymile.com> you wrote: > > > env import -n name[,..] [other_flags] addr [size] > > > > ? > > Uhm, wouldn't that make the syntax completely unrelated to all other > commands, leading to confusion? > > How about something like: > > env import [-f] [flags] addr [size] [-n name[ ...]] > env default [-f] -a|-n name[ ...] > env set [-f] name [val ...] No. That's even worse. If you don't like the comma separation,we could as well accept multiple -n args: env import -n name [-n name1 ... ] [other_flags] addr [size] > Where: > -a in "env default" would be the way to prevent the inadverent user > from wrecking the environment by mistake. What does -a stand for? "all" ? > Slightly off-topic: how about variables starting with "-"? Should be no problem in general, except for the pathological cases like variable names "-f" etc. But there has to be a penalty for such stupid names :-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Insufficient facts always invite danger. -- Spock, "Space Seed", stardate 3141.9