From: Wolfgang Denk Date: Tue, 25 Mar 2008 22:16:37 +0100 Subject: [U-Boot-Users] [PATCH v2] Add setexpr command In-Reply-To: Your message of "Thu, 14 Feb 2008 20:44:42 CST." Message-ID: <20080325211637.401FA243A7@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 you wrote: > Add a simple expr style command that will set an env variable as the result > of the command. This allows us to do simple math in shell. The following > operations are supported: &, |, ^, +, -, *, /. > > Signed-off-by: Kumar Gala > --- > > docs will be added online since that appears to be where all detailed > command docs are located right now. > > common/Makefile | 1 + > common/cmd_setexpr.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++ > include/config_cmd_all.h | 1 + > 3 files changed, 72 insertions(+), 0 deletions(-) > create mode 100644 common/cmd_setexpr.c Well, actually I applied this one... 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 It seems intuitively obvious to me, which means that it might be wrong. -- Chris Torek