🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #879

Re: bash and emacs shell command

#879
From: Chet Ramey
Date: Tue, 08 Sep 1992 04:04
20 lines
1255 bytes
> Sirs:
>    I finally managed to get bash up and running as the primary shell under
> SCO Unix 3.2.  However, whenever I do a M-x shell in emacs, all output is 
> terminated by the message:
> 
> /bin/bash: [1581: 4] tcgetattr: Not a typewriter
> ^M

I bet you have a command in your ~/.bashrc that does output without
checking whether or not the shell is interactive.

To make rsh work like some folks think it should, bash runs the bashrc
file when it is invoked as `bash -c command' and stdin is not a tty.
This is how emacs does shell escapes.

--
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu
Technical Details
Message-ID: <9209081204.AA28827.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
References: chet@odin.ins.cwru.edu (Chet Ramey)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Subject: Re: bash and emacs shell command
Message-ID: <9209081204.AA28827.SM@odin.INS.CWRU.Edu>
Sender: gnulists@ai.mit.edu
Reply-To: chet@po.cwru.edu
Organization: GNUs Not Usenet
References: chet@odin.ins.cwru.edu (Chet Ramey)
Distribution: gnu
Date: Tue, 8 Sep 1992 04:04:05 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 21