🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by John Franks Fri, 15 Sep 1989 14:23
Sourcing .bash_profile with rsh (Bash-1.03)
#600
Author: John Franks
Date: Fri, 15 Sep 1989 14:23
42 lines
1853 bytes
With bash-1.03 when I run 
	rsh remote command

I get my expected output but it is preceded by:

	Where are you?
	[: too many arguments
	stty: not supported on sockets

When I run 
	rsh remote

everything works as it should.

The issue is whether .bash_profile should be sourced when I do an rsh.
The  behavior  of  /bin/sh  is  to source .profile for the comman "rsh
remote" but not for the command "rsh remote command".   This  behavior
can  be  achieved  by  the  change  below to shell.c.  The comments in
shell.c  seem  to  indicate  that  there  was   the   intention   that
.bash_profile  be sourced for all rsh's so that the path would be set.
I don't know how to do this, but I'm  pretty  sure  the  Bourne  shell
passes the local environment and hence gets the local path.  


*** shell.c.orig	Fri Sep  8 16:06:55 1989
--- shell.c	Fri Sep 15 08:37:56 1989
***************
*** 333,337 ****
       sure that we run the .login stuff so that the user can
       set his/her PATH. */
!   if (!login_shell)
      {
        char *t = get_string_value ("SHLVL");
--- 333,337 ----
       sure that we run the .login stuff so that the user can
       set his/her PATH. */
!   if (!login_shell && interactive)
      {
        char *t = get_string_value ("SHLVL");
John Franks 	Dept of Math. Northwestern University
		Internet	john@math.nwu.edu
		Bitnet		j_franks@nuacc
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads