Red Hat Bugzilla – Bug 52875
"IFS=: for foo in $FOO:bar:baz; do" doesn't work properly
Last modified: 2007-04-18 12:36:44 EDT
Run this script:
for ac_dir in $FOO:screlt:freeble; do
for ac_dir in $ac_dummy; do
You'll see this output:
baz screlt freeble
That's wrong. The first and second blocks of output should be
Bash 2.05 gets this wrong in the same way (and I've submitted a bug
report about it directly to the bash maintainers). Bash 1.14.7 gets
Normally, I would have submitted this bug report directly to the
maintainer of ash, but I can't figure out who that is -- it isn't in
the man page or in the output of "rpm -q -i ash".
The maintainer of bash has convinced me that this behavior is correct.