From owner-freebsd-questions Sat Dec 1 16:27:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by hub.freebsd.org (Postfix) with ESMTP id 223A237B417 for ; Sat, 1 Dec 2001 16:27:49 -0800 (PST) Received: from pantherdragon.org (unknown [4.61.200.192]) by spork.pantherdragon.org (Postfix) with ESMTP id 77CE3471E6 for ; Sat, 1 Dec 2001 16:27:48 -0800 (PST) Message-ID: <3C097584.B51ECEBC@pantherdragon.org> Date: Sat, 01 Dec 2001 16:27:48 -0800 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Changing $IFS in a bash shell Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 I need to change &IFS to be just a newline character, so my for-in-do loop doesn't parse spaces in the item list as delimiters, but I can't 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message