Date: Tue, 28 Feb 1995 17:50:06 -0500 From: The Source of All Evil <source@NetBSD.ORG> To: source-changes@pain.lcs.mit.edu Subject: sun-lamp CVS commits Message-ID: <199502282250.RAA21296@pain.lcs.mit.edu>
index | next in thread | raw e-mail
christos
Tue Feb 28 17:46:27 EST 1995
Update of /a/cvsroot/src/bin/sh
In directory pain.lcs.mit.edu:/a/users/christos/sh
Modified Files:
expand.c
Log Message:
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}:".
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502282250.RAA21296>
