home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / bash / bug / 605 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.4 KB  |  45 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: "tee | bash -i" doesn't work?
  5. Message-ID: <9209111829.AA18237.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, 11 Sep 1992 10:29:46 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 30
  14.  
  15. > I can't seem to get out of:
  16. > $ tee | bash -i
  17. > This is true of ash and ksh as well.
  18.  
  19. This is a job control issue.  When an interactive bash starts up in a
  20. job control environment, it puts itself into a new process group and
  21. makes itself the process group leader.  When bash is started as above,
  22. it is not a process group leader, and when it makes itself one, leaves
  23. the two halves of the pipeline in different process groups, fighting
  24. over the terminal, which is disastrous.  The `tee' gets hit with SIGTSTP
  25. and stops.
  26.  
  27. `tee logf | bash -s' works because the bash started is non-interactive.
  28. sh works because it doesn't know anything about job control.
  29.  
  30. --
  31. ``The use of history as therapy means the corruption of history as history.''
  32.     -- Arthur Schlesinger
  33.  
  34. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  35.  
  36.  
  37. --
  38. ``The use of history as therapy means the corruption of history as history.''
  39.     -- Arthur Schlesinger
  40.  
  41. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  42.  
  43.