From: Wolfgang Denk Date: Thu, 14 Feb 2008 20:05:56 +0100 Subject: [U-Boot-Users] [PATCH] Add setexpr command In-Reply-To: Your message of "Thu, 14 Feb 2008 07:41:37 EST." <47B43701.1070102@ge.com> Message-ID: <20080214190556.2B7DD2483C@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 In message <47B43701.1070102@ge.com> you wrote: > > OK, time to educate Jerry since I'm too lazy to check myself. Does our > hush shell support back ticks? If we have back tick support, or can add No, we don't, and it's not trivial to add. [Feel free to prove me worng :-) ] > that support, we should call it expr and return a value which then gets > placed properly. That would be IDEAL. > setenv foo `expr 2 + 3` Agreed. BUt that's the very reason not to call it expr, because it doesn't work this way. 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 You can observe a lot just by watchin'. - Yogi Berra