Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sun-lamp CVS commits



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}:".





Home | Main Index | Thread Index | Old Index