🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #243

Re: rsh, rcp with bash

#243
From: Donn Cave
Date: Thu, 30 Jul 1992 17:41
31 lines
1780 bytes
chip@tct.COM (Chip Salzenberg) writes:

| 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.
|
| Thus the following patch to Bash 1.12 to eliminate that behavior:

How come?  I've been holding up bash as the state of the art in getting
that one right.  Shells like the Korn shell that never run a startup script
unless they're login shells leave people scratching their heads over things
like

	$ rsh there xterm -display $DISPLAY
	ksh: xterm: not found

(There are workarounds, if you want to try "/bin/login.ksh" or "/bin/-ksh" as
your login shell.)  Shells like csh that always run a startup script are even
worse, and there's no workaround for that.  That's where bash occasionally
gets into trouble - bash -c will run .bashrc if its environment hasn't been
prepared by another bash process.

The stock answer to all this in some quarters is "fix rshd".  I'd be happy
to have rshd start a login shell, but then I'm pretty comfortable with the
idea of organizing my .profile with a lot of shell logic; lots of users
would have trouble with that.

	Donn Cave, University Computing Services, University of Washington
	donn@cac.washington.edu
Technical Details
Message-ID: <1992Jul30.174120.16549@u.washington.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!carson.u.washington.edu!donn
References: <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!carson.u.washington.edu!donn
From: donn@carson.u.washington.edu (Donn Cave)
Subject: Re: rsh, rcp with bash
Message-ID: <1992Jul30.174120.16549@u.washington.edu>
Sender: gnulists@ai.mit.edu
Organization: University of Washington
References: <9207241236.AA02088.SM@odin.INS.CWRU.Edu> 
Distribution: gnu
Date: Thu, 30 Jul 1992 17:41:20 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 32