[U-Boot] [PATCH V3 08/12] cmd_test: implement -e test for file existence

Simon Glass sjg at chromium.org
Sat Feb 1 01:04:48 CET 2014


Hi Stephen,

On 27 January 2014 13:49, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> This is much like a regular shell's -e operator, except that it takes
> multiple arguments to specify the device type and  device/partition ID
> in addition to the usual filename:
>
> if test -e mmc 0:1 /boot/boot.scr; then echo yes; else echo no; fi
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

That's a really clever implementation.

Regards,
Simon


More information about the U-Boot mailing list