[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ssh changed from socket to pipe stdin
From: |
Jon Seymour |
Subject: |
Re: ssh changed from socket to pipe stdin |
Date: |
Fri, 24 Oct 2008 00:22:38 +1100 |
If you can, make the target of your ssh invocation a wrapper script
that sources .bashrc and then executes the remaining arguments.
Something like (in /usr/bin/local/ssh-target.sh):
#!/usr/bin/env bash
.[ -f ~/.bashrc ] && . ~/.bashrc
"$@"
ssh user@remote /usr/local/bin/ssh-target.sh cmd args...
At the cost of having to have /usr/local/bin/ssh-target.sh (or
equivalent) available everywhere, you can at least avoid dependencies
on particular combinations of ssh and bash.
jon.
On Thu, Oct 23, 2008 at 9:52 PM, Roman Rakus <rrakus@redhat.com> wrote:
> Roman Rakus wrote:
>>
>> and with this change .bashrc is never sourced. Will we do something with
>> this? Changing check from socket to pipe stdin will cause problems with
>> older ssh. Maybe defining SSH_SOURCE_BASHRC? Or just don't do anything?
>> RR
>>
>>
> This is invoked by
> https://bugzilla.redhat.com/show_bug.cgi?id=458839
> RR
>
>
>