diff options
| author | christos <christos@NetBSD.org> | 1995-02-28 22:46:12 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1995-02-28 22:46:12 +0000 |
| commit | 3936aab031ebb7a34de7e2cb64a941533c731691 (patch) | |
| tree | 2271eae00ad2d9d7cd731deab3eeb457005204e3 /gnu/lib/libg++ | |
| parent | 8449f292fa7b3924c748bc9673df868a8af9a19c (diff) | |
Changed IFS string-splitting so that it breaks spaces even when IFS does not
begin with a space, but contains one. Fixes PR bin/809.
#!/bin/sh
list="a b c "
echo "With ordinary IFS"
for i in $list;do
echo $i
done
IFS=":${IFS}"
echo "With changed IFS"
for i in $list;do
echo $i
done
Note that before the fix ":${IFS}" behaved differently than "${IFS}:".
Diffstat (limited to 'gnu/lib/libg++')
0 files changed, 0 insertions, 0 deletions
