From: Kim Phillips Date: Wed, 13 Feb 2008 10:35:13 -0600 Subject: [U-Boot-Users] [PATCH v2] Add expr command In-Reply-To: References: Message-ID: <20080213103513.a72b70ed.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 13 Feb 2008 09:54:31 -0600 (CST) Kumar Gala wrote: > +} > + > +U_BOOT_CMD( > + expr, 5, 0, do_expr, > + "expr - set environment variable as the result of eval expression\n", > + "name value1 value2\n" > + " - set environment variable 'name' to the result of the evaluated\n" > + " express specified by . can be &, |, ^, +, -, *, /, %\n" can we at least change the name to "setexpr" or something, so as not break forward compatibility with any future GNU syntax expr implementation? Kim