From: Wolfgang Denk Date: Mon, 23 Nov 2009 00:07:03 +0100 Subject: [U-Boot] [PATCH 3/3] Add 'true' and 'false' commands In-Reply-To: <1255732587-24542-3-git-send-email-ptyser@xes-inc.com> References: <1255732587-24542-1-git-send-email-ptyser@xes-inc.com> <1255732587-24542-3-git-send-email-ptyser@xes-inc.com> Message-ID: <20091122230703.262E1E34A27@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 Peter Tyser, In message <1255732587-24542-3-git-send-email-ptyser@xes-inc.com> you wrote: > These commands are only enabled when the hush shell is enabled and can > be useful in scripts such as: > > while true do > echo "Booting OS..."; > run $bootcmd; > echo "Booting OS failed"; > sleep 10; > done > > Signed-off-by: Peter Tyser > --- > This could be added as a hush builtin command if people don't want to > pollute the top-level help listing. Its debatable if 'false' should > be added also, but I threw it in to be consistent. > > common/cmd_test.c | 22 ++++++++++++++++++++++ > 1 files changed, 22 insertions(+), 0 deletions(-) Applied, to "next" branch, thanks. 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 FORTRAN? The syntactically incorrect statement "DO 10 I = 1.10" will parse and generate code creating a variable, DO10I, as follows: "DO10I = 1.10" If that doesn't terrify you, it should.