ash - problem/bug with redirection and internal command
Vladimir N. Oleynik
dzo at simtreas.ru
Fri May 5 14:27:04 UTC 2006
Jean Wolter wrote:
> # write some file on sysfs
> echo "+bond0" > /sys/class/net/bonding_masters
> while true; do
> echo "this statement is supposed to be executed endlessly"
> done
>
> The body of the while loop is never executed under certain
> circumstances, since "true" returns false:
>
> - open on /sys/class/net/bonding_masters succeeds
> - the following write fails for some data written to the file
>
Ah, thanks.
While searched for the good test to check up a problem,
I has revealed one more mistake: in STANDALONE_MODE
this error is not exist :-) (I tested with all enabled config options),
it call fork always and ferror() is localy.
I has set clearerr() without if() with original the ash compatibility.
New tha "ash" version placed
ftp://ftp.simtreas.ru/pub/my/bb/bb_different
--w
vodz
More information about the busybox
mailing list