[U-Boot] [PATCH V2 2/5] fs: implement infra-structure for an 'exists' function
Wolfgang Denk
wd at denx.de
Sun Jan 26 20:44:35 CET 2014
Dear Stephen Warren,
In message <1390507020-15766-2-git-send-email-swarren at wwwdotorg.org> you wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> This could be used in scripts such as:
>
> if exists mmc 0:1 /boot/boot.scr; then
> load mmc 0:1 ${scriptaddr} /boot/boot.scr
> source ${scriptaddr}
> fi
I understand and agree with your intentions, but I dislike to invent a
new, totally non-standard command.
In UNIX, we would use the "test" command for such purposes. Would it
not make sense to implement this feature in a more compatible way? we
have "test", soo, so we should be able to plug it in there?
What do you think?
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
"Life, loathe it or ignore it, you can't like it."
- Marvin the paranoid android
More information about the U-Boot
mailing list