Date: Sun, 02 Dec 2001 16:01:29 -0800 From: Darren Pilgrim <dmp@pantherdragon.org> To: chk no <chuck@c1742628-a.vncvr1.wa.home.com> Cc: freebsd-questions@freebsd.org Subject: Re: Changing $IFS in a bash shell Message-ID: <3C0AC0D9.BFD0604B@pantherdragon.org> References: <200112022343.fB2Nh6k27466@c1742628-a.vncvr1.wa.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
chk no wrote:
> Changing IFS is usually not the best way to do things. Changing IFS
> can break other scripts, other parts of your script, & is generally
> only used as a last resort.
How else do you recommend I alter the criteria bash uses for its
word-splitting routine?
Redefining IFS in a script isn't a problem at all. The value will only
last for duration of the script, inside that script only.
> Instead, try things like:
>
> eval ... |sed "{
<snip>
I'm doing it with a for-in-do loop to avoid having to use external
programs. This is going to be part of a web-front end for a file
archive, and the fewer external programs the scripts have to call the
better.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C0AC0D9.BFD0604B>
