Gcc 4 msh expression trouble
Jate Sujjavanich
jsujjavanich at syntech-fuelmaster.com
Thu Oct 4 22:31:47 UTC 2007
I've recently switched from gcc 3.4.0 to gcc 4.2-8 (codesourcery) for
shared library support on the Coldfire. It seems this has broken two
things: recognition of the ! inside of braces [], and messed with
variable substitution inside of backticks.
This fails: [ $i -lt 10 -a ! -e /var/snap_state ]. I can get rid of the
! and it works properly.
If I do
echo `expr $i + 1`
expr returns a syntax error. Running it as a regular command is
successful.
I am trying to find out which part of busybox/shell/msh.c to debug from
someone who is more familiar with the code. Thanks.
- Jate S.
More information about the busybox
mailing list