🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #235

rsh, rcp with bash

#235
From: Eyvind Ness
Date: Thu, 30 Jul 1992 06:30
20 lines
965 bytes
  | Date: Wed, 29 July 1992, 12:41 GMT
  | From: Chip Salzenberg
  |
  | According to chet@po.cwru.edu:
  | >Bash attempts to source the .bashrc for non-interactive shells running
  | >rsh and rcp so things like $PATH get set.
  | 
  | ... which is, in my opinion, a BIG mistake.

I agree. But why don't you just put:

    if tty -s
    then
	....

at the head of your .bashrc? This should block any Bash attempts to read
the rest of ~/.bashrc when there is no terminal associated with your
Bash-process.

Eyvind.
Technical Details
Message-ID: <9207300630.AA06975@dole.hrp.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hrp.NO!eyvind.ness
References: <2A7691FE.7354@tct.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hrp.NO!eyvind.ness
From: eyvind.ness@hrp.NO (Eyvind Ness)
Subject: rsh, rcp with bash
Message-ID: <9207300630.AA06975@dole.hrp.no>
Sender: gnulists@ai.mit.edu
Reply-To: Eyvind.Ness@hrp.no
Organization: GNUs Not Usenet
References: <2A7691FE.7354@tct.com>
Distribution: gnu
Date: Thu, 30 Jul 1992 06:30:00 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 21