From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Thu, 21 Jul 2011 11:01:21 +0200 Subject: [U-Boot] [PATCH] command "sspi": add write-only flag '.w' (discard read data) In-Reply-To: <201107202127.22405.vapier@gentoo.org> (Mike Frysinger's message of "Wed, 20 Jul 2011 21:27:21 -0400") References: <1310837526-3394-1-git-send-email-apr@cn-eng.de> <1311181487.27155.33.camel@ws-apr.office.loc> <201107202127.22405.vapier@gentoo.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mike, [...] >> Following the common U-Boot way to do this, I'd suggest >> sspi [:][.] [din_env_var] >> and either never print the read result to the console (my favorite) or >> only if no env variable to store is passed. To be defined, comments >> welcome. > > is this the common u-boot approach ? seems like extending every random func > to take a supplementary env var is the wrong way. if the hush shell simply > supported syntax like: > foo="`sspi ......`" > then every command would get this for free Indeed - this would be the best solution and I would greatly appreciate such a feature as it would be a big step in what we can script (elegantly) in U-Boot. Cheers Detlev -- More than any other time in history, mankind faces a crossroads. One path leads to despair and utter hopelessness. The other to total extinction. Let us pray, we have the wisdom to choose correctly. -- Woody Allen -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de