home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!paladin.american.edu!gatech!destroyer!srvr1.engin.umich.edu!malgudi.oar.net!chemabs!lwv26
- From: lwv26@cas.org (Larry W. Virden)
- Subject: Re: Problem with ksh read built-in parsing
- Message-ID: <1993Jan22.131631.20334@cas.org>
- Followup-To: comp.unix.shell
- Sender: usenet@cas.org
- Reply-To: lvirden@cas.org (Larry W. Virden)
- Organization: Nedriv Software and Shoe Shiners, Uninc.
- References: <C1488r.HM1@boi.hp.com> <1993Jan20.151915.17141@b11.b11.ingr.com>
- Date: Fri, 22 Jan 1993 13:14:08 GMT
- Lines: 21
-
- I have encountered strange interactions in functions where I attempted to
- save off IFS and then restore it later. I ended up using the practice
- - which works for me in the sort term - of undefining IFS when I got
- done inside of shell programs which needed to parse IFS. This isn't
- a great solution, but for some reason, certain programs would cease
- working if I did something like:
-
- OIFS="$IFS"
- IFS=:$IFS
-
- do work
-
- IFS="$OIFS"
-
- return
-
-
- --
- Larry W. Virden UUCP: osu-cis!chemabs!lvirden
- Same Mbox: BITNET: lvirden@cas INET: lvirden@cas.org
- Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614
-