home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / bash / bug / 578 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.2 KB  |  38 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
  3. From: chet@odin.ins.cwru.edu (Chet Ramey)
  4. Subject: Re: odd `shift' behaviour with bash-1.12
  5. Message-ID: <9208282124.AA00590.SM@odin.INS.CWRU.Edu>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: chet@po.cwru.edu
  8. Organization: GNUs Not Usenet
  9. References: chet@odin.ins.cwru.edu (Chet Ramey)
  10. Distribution: gnu
  11. Date: Fri, 28 Aug 1992 13:24:27 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 23
  14.  
  15. > the second `shift' needs to be executed to shift the args to `bug',
  16. > even though they were already (supposed to have been) kicked out by
  17. > the `shift' in the inner loop.
  18.  
  19. Bourne-style shells, bash included, run shell control structures
  20. with piped output in subshells.  These subshells cannot modify
  21. their parent's environment.
  22.  
  23. Chet
  24.  
  25. --
  26. ``The use of history as therapy means the corruption of history as history.''
  27.     -- Arthur Schlesinger
  28.  
  29. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  30.  
  31.  
  32. --
  33. ``The use of history as therapy means the corruption of history as history.''
  34.     -- Arthur Schlesinger
  35.  
  36. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  37.  
  38.