From owner-source-changes@NetBSD.ORG Tue Feb 28 16:47:56 1995 Return-Path: owner-source-changes@NetBSD.ORG Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id QAA24930; Tue, 28 Feb 1995 16:47:55 -0800 Received: (from daemon@localhost) by pain.lcs.mit.edu (8.6.9/8.6.9) id RAA21302 for source-changes-outgoing; Tue, 28 Feb 1995 17:50:19 -0500 Received: (from source@localhost) by pain.lcs.mit.edu (8.6.9/8.6.9) id RAA21296 for source-changes; Tue, 28 Feb 1995 17:50:06 -0500 Date: Tue, 28 Feb 1995 17:50:06 -0500 From: The Source of All Evil Message-Id: <199502282250.RAA21296@pain.lcs.mit.edu> To: source-changes@pain.lcs.mit.edu Subject: sun-lamp CVS commits Sender: owner-source-changes@NetBSD.ORG Precedence: list X-Loop: source-changes@NetBSD.ORG 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}:".