[BusyBox] bb ash IFS behaviour
Vladimir N. Oleynik
dzo at simtreas.ru
Wed Aug 29 06:27:30 UTC 2001
Arne,
> i just figured out a strange behaviour of IFS in ash, that is not the same
> as it is in bash or the orig (0.3.5) ash:
>
> her is my example script:
Yes, you are right. POSIX it is difficult for understanding.
P1003.2, draft 11, 3.5.2
POSIX.2, 3.6.5, (3)(b).
Ohhhh...
Therefore the correct behaviour ash will be, if in the beginning to ash.c add a
line:
#define IFS_BROKEN
;-)
I am not sure, that it will solve all problems of compatibility with bash
(there this code is simply huge to enter search IFS on initial source bash
enough),
but as primary ash source will work as.
--w
vodz
More information about the busybox
mailing list