From: Frans Meulenbroeks Date: Thu, 25 Feb 2010 13:51:15 +0100 Subject: [U-Boot] setexpr syntax Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear all, I noticed setexpr help says: 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.