Article View: gnu.bash.bug
Article #227Re: rsh, rcp with bash
From: Ian Fitchet
Date: Sun, 26 Jul 1992 16:20
Date: Sun, 26 Jul 1992 16:20
46 lines
2014 bytes
2014 bytes
On 24 Jul 92 04:36:22 GMT, Chet Ramey wrote > I wonder whether this problem has been beaten to death in this group > before. I use bash 1.12.1 as login shell on my machines (Sun Sparcs > running SunOS 4.1.1) and having problem with rsh and rcp. The symptoms > are as follows: > > host1> rcp localfile host2:remotefile > stty: TCGETS: Operation not supported on socket > host1> rsh host2 ls > stty: TCGETS: Operation not supported on socket Chet> I'll bet you have something that does output or manipulates the terminal Chet> state in your .bashrc. Bash attempts to source the .bashrc for non- Chet> interactive shells running rsh and rcp so things like $PATH get set. Exactly. I had for ages the same error message popping up (I remember it particularly when using shell-command in Emacs) and after much grief, especially when crypting files as the error message appeared in the file, I realised I had stty pass8 ; in my .bashrc so I could use the META keys. I now avoid it by doing: if [ -n "$-" ] ; then stty pass8 ; fi which "tests" for `i' for interactive in $- (the current bash flags) which thanks to Chet I now realise is a *bit* flaky - I always wanted to know how to test for an individual flag :-) I may be an idiot, but I'm happy. -- Cheers, Ian ------------------------------------------------------------------------------- Ian Fitchet I.D.Fitchet@cs.bham.ac.uk School of Computer Science Univ. of Birmingham, UK, B15 2TT
Technical Details
Message-ID:
<IDF.92Jul26162056@fat-controller.cs.bham.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.bham.ac.UK!idfReferences:
<9207241236.AA02088.SM@odin.INS.CWRU.Edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.bham.ac.UK!idf From: idf@cs.bham.ac.UK (Ian Fitchet) Subject: Re: rsh, rcp with bash Message-ID: <IDF.92Jul26162056@fat-controller.cs.bham.ac.uk> Sender: gnulists@ai.mit.edu Organization: School of Computer Science, University of Birmingham References: <9207241236.AA02088.SM@odin.INS.CWRU.Edu> Distribution: gnu Date: Sun, 26 Jul 1992 16:20:56 GMT Approved: bug-bash@prep.ai.mit.edu Lines: 47