Provide a way to source shell-specific startup files for noninteractive commands

Ivan Pozdeev vano at
Mon May 23 19:28:00 AEST 2022

On 22.05.2022 2:00, Thorsten Glaser wrote:
> On Sun, 22 May 2022, Ivan Pozdeev wrote:
>> 2) In addition to `~/.ssh/rc`, source `~/.ssh/<shell>rc`, and do that in the
> As shell maintainer, I’d be very cross if this happened.
> The shell manpages clearly document in which circumstances
> their various startup files are sourced. If you need to
> have them sourced, fulfill the respective requirements;
> usually, this means use the ssh(1) -t option.

 From what I can see, there's no way to pass options to the shell that would run the command.
As per ,
it's always run as `<shell> -c <command>` which makes it non-login and non-interactive regardless of whether a terminal is allocated.

> bye,
> //mirabilos


More information about the openssh-unix-dev mailing list