home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / bash / bug / 502 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.9 KB  |  61 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!cs.bham.ac.UK!idf
  3. From: idf@cs.bham.ac.UK (Ian Fitchet)
  4. Subject: Re: rsh, rcp with bash
  5. Message-ID: <IDF.92Jul26162056@fat-controller.cs.bham.ac.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: School of Computer Science, University of Birmingham
  8. References: <9207241236.AA02088.SM@odin.INS.CWRU.Edu>
  9. Distribution: gnu
  10. Date: Sun, 26 Jul 1992 16:20:56 GMT
  11. Approved: bug-bash@prep.ai.mit.edu
  12. Lines: 47
  13.  
  14. On 24 Jul 92 04:36:22 GMT, Chet Ramey wrote
  15.  
  16. > I wonder whether this problem has been beaten to death in this group 
  17. > before.  I use bash 1.12.1  as login shell on my machines (Sun Sparcs 
  18. > running SunOS 4.1.1) and having problem with rsh and rcp. The symptoms
  19. > are as follows:
  20. >     host1>  rcp localfile host2:remotefile
  21. >     stty: TCGETS: Operation not supported on socket
  22. >     host1>  rsh host2 ls
  23. >     stty: TCGETS: Operation not supported on socket
  24.  
  25. Chet> I'll bet you have something that does output or manipulates the terminal
  26. Chet> state in your .bashrc.  Bash attempts to source the .bashrc for non-
  27. Chet> interactive shells running rsh and rcp so things like $PATH get set.
  28.  
  29.  Exactly.  I had for ages the same error message popping up
  30. (I remember it particularly when using shell-command in Emacs) and
  31. after much grief, especially when crypting files as the error message
  32. appeared in the file, I realised I had
  33.  
  34. stty pass8 ;
  35.  
  36.  in my .bashrc so I could use the META keys.  I now avoid it by doing:
  37.  
  38. if [ -n "$-" ] ; then
  39.     stty pass8 ;
  40. fi
  41.  
  42.  which "tests" for `i' for interactive in $- (the current bash flags)
  43. which thanks to Chet I now realise is a *bit* flaky - I always wanted
  44. to know how to test for an individual flag :-)
  45.  
  46.  I may be an idiot, but I'm happy.
  47.  
  48.  
  49.  
  50. --
  51. Cheers,
  52.  
  53.     Ian
  54.  
  55. -------------------------------------------------------------------------------
  56. Ian Fitchet                           I.D.Fitchet@cs.bham.ac.uk
  57. School of Computer Science
  58. Univ. of Birmingham, UK, B15 2TT
  59.  
  60.