[U-Boot] setexpr syntax

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Thu Feb 25 13:51:15 CET 2010


Dear all,

I noticed setexpr help says:
 <op> can be &, |, ^, +, -, *, /, %

However, when one uses the hush shell additional escapes might be needed.

=> setexpr tst 3 & f
syntax error
=> setexpr tst 3 | f
syntax error

This works:
=> setexpr tst 3 \| f
=> print tst
tst=f

Not sure whether we should document this somewhere (or modify the help text).
It took me a few minutes to realise what is going on, so a warning
somewhere seems in place.


More information about the U-Boot mailing list