[U-Boot-Users] [PATCH v2] Add expr command
Kumar Gala
galak at kernel.crashing.org
Wed Feb 13 17:41:18 CET 2008
On Feb 13, 2008, at 10:35 AM, Kim Phillips wrote:
> On Wed, 13 Feb 2008 09:54:31 -0600 (CST)
> Kumar Gala <galak at kernel.crashing.org> wrote:
>
>> +}
>> +
>> +U_BOOT_CMD(
>> + expr, 5, 0, do_expr,
>> + "expr - set environment variable as the result of eval
>> expression\n",
>> + "name value1 <op> value2\n"
>> + " - set environment variable 'name' to the result of the
>> evaluated\n"
>> + " express specified by <op>. <op> 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?
ok. Waiting to here on wd's feeling about having this as part of the
standard command set or not.
- k
More information about the U-Boot
mailing list