From: Wolfgang Denk Date: Tue, 25 Mar 2008 22:14:37 +0100 Subject: [U-Boot-Users] [PATCH] Add setexpr command In-Reply-To: Your message of "Wed, 13 Feb 2008 16:53:38 CST." Message-ID: <20080325211437.88132243A7@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 > --- > > this was the expr patch, but renamed based on comments on the list. > > Still open issue about should this be in config_cmd_default.h > > - k > > common/cmd_setexpr.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 70 insertions(+), 0 deletions(-) > create mode 100644 common/cmd_setexpr.c Applied, 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 An armed society is a polite society.