home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / bash / bug / 591 < prev    next >
Encoding:
Text File  |  1992-09-03  |  997 b   |  34 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!odin.ins.cwru.edu!chet
  3. From: chet@odin.ins.cwru.edu (Chet Ramey)
  4. Subject: Re: Bug or feature?
  5. Message-ID: <9209031405.AA20407.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: Thu, 3 Sep 1992 06:05:30 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 19
  14.  
  15. > If you say "for i in 0 1 2; do sleep 100; done &; fg" a ^Z stops
  16. > the whole thing.  Maybe you can add a code to place the topmost
  17. > loop into a separate process if bash is running interactively?
  18.  
  19. If you want a separate process for the loop, say that:
  20.  
  21. ( for i in 0 1 2 3; do sleep 100; done )
  22.  
  23. Putting the whole loop into a separate process violates shell
  24. semantics.
  25.  
  26. Chet
  27.  
  28. --
  29. ``The use of history as therapy means the corruption of history as history.''
  30.     -- Arthur Schlesinger
  31.  
  32. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  33.  
  34.