ash bug ?

walter harms wharms at bfs.de
Mon Sep 4 00:37:15 PDT 2006


this is a short version of arithmetic expansion ( let "x=5+y" == (( x=5+y)) ) (no POSIX feature
book but it seems a common feature in shells according to my book ).
 the problem is that this is supported. only the additional spaces
around '==' causing the problem.

re,
 wh


Rich Felker wrote:
> On Sun, Sep 03, 2006 at 08:40:22PM +0200, walter harms wrote:
>> hi list,
>> riaz and i are working on documenting ash. so i tried to run the bash test scripts on ash.
>> and one place ash breaks where sh works. bug or feature ?
>> ash is running endless because it does not find 'x'
>>
>> x=3
>> until (( x == 4 )) ; do
>>         x=4
>> done
>>
>> note:
>>
>> removing the spaces solves the problem.
> 
> See http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
> Nothing about (( )) there.
> 
> Rich
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
> 
> 
> 


More information about the busybox mailing list