home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5461 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!paladin.american.edu!gatech!destroyer!srvr1.engin.umich.edu!malgudi.oar.net!chemabs!lwv26
  3. From: lwv26@cas.org (Larry W. Virden)
  4. Subject: Re: Problem with ksh read built-in parsing
  5. Message-ID: <1993Jan22.131631.20334@cas.org>
  6. Followup-To: comp.unix.shell
  7. Sender: usenet@cas.org
  8. Reply-To: lvirden@cas.org (Larry W. Virden)
  9. Organization: Nedriv Software and Shoe Shiners, Uninc.
  10. References: <C1488r.HM1@boi.hp.com> <1993Jan20.151915.17141@b11.b11.ingr.com>
  11. Date: Fri, 22 Jan 1993 13:14:08 GMT
  12. Lines: 21
  13.  
  14. I have encountered strange interactions in functions where I attempted to
  15. save off IFS and then restore it later.  I ended up using the practice
  16. - which works for me in the sort term - of undefining IFS when I got
  17. done inside of shell programs which needed to parse IFS.   This isn't
  18. a great solution, but for some reason, certain programs would cease
  19. working if I did something like:
  20.  
  21. OIFS="$IFS"
  22. IFS=:$IFS
  23.  
  24. do work
  25.  
  26. IFS="$OIFS"
  27.  
  28. return
  29.  
  30.  
  31. -- 
  32. Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
  33. Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
  34. Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
  35.