On Wed, Jul 10, 2024 at 16:50:38 +0200, Nicolas George wrote:
> Greg Wooledge (12024-07-10):
> > There are many legitimate or semi-legitimate situations where a .bashrc
> > file might be read by a shell that's not running inside a terminal.
> > 
> > One of them is if someone chooses to dot in ~/.profile from their
> > ~/.xsession file, or something analogous to it.  Or perhaps their
> > operating system does this automatically in certain kinds of login.
> > 
> > Another might be a scripted ssh session being run from cron, or some
> > other parent that's not in a terminal.  Analogously, the ancient
> > predecessors of ssh (rsh, rexec) had exactly the same issues.
> 
> What you describe is not legitimate, even semi-, these are hacks by
> people who cannot be bothered to organize their configuration properly.

hobbit:~$ echo 'echo I AM BASHRC' >> .bashrc
hobbit:~$ ssh localhost date
greg@localhost's password: 
I AM BASHRC
Wed Jul 10 11:01:00 EDT 2024
hobbit:~$ 

Debian is, by your definition, a hack made by people who cannot be
bothered to organize their configuration properly.

Good to know.

(I won't even bother explaining because you CLEARLY know better than I
do about all topics.  Enjoy your day.)

Reply via email to