[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why ~/.bashrc in ssh or scp??
From: |
Chet Ramey |
Subject: |
Re: why ~/.bashrc in ssh or scp?? |
Date: |
Tue, 18 Jan 2005 11:02:07 -0500 |
> With csh .cshrc is read by login shells.
And you can make bash do the same, by sourcing it from .bash_profile.
> In bash, you need something like:
You don't, really, but you're welcome to put that in there.
> It looks like you want that shell run by rshd/sshd to behave as
> a login shell (set the users login session settings), or said
> otherwise, have sshd start a login session (without the utmp
> stuff however).
No, I don't. I want users to have the behavior they've expressed a
desire for: a way to source .bashrc in shells run by rshd and sshd.
It's not a perfect solution, but it works well enough.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/