Re: [U-Boot] escape sequence issue

2011-12-02 Thread Wolfgang Denk
Dear Frans Meulenbroeks, In message you wrote: > > setenv tst "setexpr.b mode *1000 \& 0xe8" > and I do a > printenv tst > I get: > tst=setexpr.b mode *1000 \& 0xe8 > Note: one slash. > But if I do a printenv without argument I get > tst=setexpr.b mode *1000 \\& 0xe8 > Note the two slashes. Yes

[U-Boot] escape sequence issue

2011-12-02 Thread Frans Meulenbroeks
Hi, I noticed the following (in 2011.03) If I do this on the u-boot cmd line: setenv tst "setexpr.b mode *1000 \& 0xe8" and I do a printenv tst I get: tst=setexpr.b mode *1000 \& 0xe8 Note: one slash. But if I do a printenv without argument I get tst=setexpr.b mode *1000 \\& 0xe8 Note the