Date: Tue, 30 Jan 2001 10:46:26 -0500 From: Chet Ramey <chet@nike.INS.CWRU.Edu> To: patrick@netzuno.com Cc: chet@po.CWRU.Edu, roam@orbitel.bg, freebsd-hackers@freebsd.org Subject: RE: Bash2 removes SSH_CLIENT from the environment Message-ID: <1010130154626.AA70376.SM@nike.INS.CWRU.Edu>
next in thread | raw e-mail | index | archive | help
> > The tradeoff bash makes is to remove the export attribute from SSH_CLIENT > > if it exists in the shell's initial environment. Users may always export > > it explicitly. > > This is what I figured from reading the code, however not exporting > SSH_CLIENT is not enough to really achieve this goal: bash looks for either > SSH_CLIENT or SSH2_CLIENT to determine if it should run the startup scripts, This was an oversight that will be fixed in bash-2.05. > but only SSH_CLIENT is cleared. > > Also the content of SSH_CLIENT may be of intereset (namely the remote IP) > and I don't know how to retrieve that information after SSH_CLIENT has been > clobbered. What do you mean? The variable is still there, it's just not exported. If you want to export it, do so. > (note the discussion is only on freebsd-hackers from now on) I don't think I'm on freebsd-hackers. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet) Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1010130154626.AA70376.SM>