home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / bash / bug / 597 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.2 KB  |  36 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!convex!linac!pacific.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: bash and emacs shell command
  5. Message-ID: <9209081204.AA28827.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: Tue, 8 Sep 1992 04:04:05 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 21
  14.  
  15. > Sirs:
  16. >    I finally managed to get bash up and running as the primary shell under
  17. > SCO Unix 3.2.  However, whenever I do a M-x shell in emacs, all output is 
  18. > terminated by the message:
  19. > /bin/bash: [1581: 4] tcgetattr: Not a typewriter
  20. > ^M
  21.  
  22. I bet you have a command in your ~/.bashrc that does output without
  23. checking whether or not the shell is interactive.
  24.  
  25. To make rsh work like some folks think it should, bash runs the bashrc
  26. file when it is invoked as `bash -c command' and stdin is not a tty.
  27. This is how emacs does shell escapes.
  28.  
  29. --
  30. ``The use of history as therapy means the corruption of history as history.''
  31.     -- Arthur Schlesinger
  32.  
  33. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  34.  
  35.