[U-Boot] strcmp UBoot command

Wolfgang Denk wd at denx.de
Wed Oct 6 22:45:25 CEST 2010


Dear Michal Schulz,

In message <AANLkTi=eYrmRWheqNnRYUJ5hcnf5UpF=sw0Zhpyvj32O at mail.gmail.com> you wrote:
> 
> Working on the UBoot for EfikaMX I found out, that the minimalistic
> shell is not able to compare two strings. Therefore I have added a new
> uboot command, strcmp, which takes three arguments - two strings to
> compare and the compare operator. The function can be used in
> combination with "if" command as follows:

Does the "test" command not work for you? If not, can we not rather
extend this instead of adding a new, nonstandard command?

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
Those who hate and fight must stop themselves -- otherwise it is  not
stopped.
	-- Spock, "Day of the Dove", stardate unknown


More information about the U-Boot mailing list