From owner-freebsd-questions Sat Dec 1 17:32:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id BFB1B37B416 for ; Sat, 1 Dec 2001 17:32:09 -0800 (PST) Received: from sdn-ar-007dcwashp198.dialsprint.net ([63.178.91.110] helo=moo.holy.cow) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16ALUG-0006z1-00; Sat, 01 Dec 2001 17:32:09 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id C708C50DCF; Sat, 1 Dec 2001 20:33:54 -0500 (EST) Date: Sat, 1 Dec 2001 20:33:54 -0500 From: parv To: Darren Pilgrim Cc: freebsd-questions@freebsd.org Subject: Re: Changing $IFS in a bash shell Message-ID: <20011201203354.A98528@moo.holy.cow> Mail-Followup-To: Darren Pilgrim , freebsd-questions@freebsd.org References: <3C097584.B51ECEBC@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C097584.B51ECEBC@pantherdragon.org>; from dmp@pantherdragon.org on Sat, Dec 01, 2001 at 04:27:48PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG in message <3C097584.B51ECEBC@pantherdragon.org>, wrote Darren Pilgrim thusly... > > I need to change &IFS to be just a newline character, ... ... > seem to set $IFS properly. None of the following yeild the desired > result: > > IFS=\012 > IFS=\n > IFS=^M > > What is the proper way to change $IFS? this seemed to work for me in a sh script... IFS=' ' -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message