[U-Boot-Users] [PATCH v2] Add expr command

Kim Phillips kim.phillips at freescale.com
Wed Feb 13 17:35:13 CET 2008


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?

Kim




More information about the U-Boot mailing list