mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-21 04:54:48 +02:00
Env:SSH_ORIGINAL_COMMAND added when needed
https://github.com/PowerShell/Win32-OpenSSH/issues/243
This commit is contained in:
parent
ff96264aae
commit
071b0d49e5
@ -758,6 +758,9 @@ do_exec_no_pty(Session *s, const char *command)
|
||||
|
||||
SetEnvironmentVariable("SSH_CONNECTION", buf);
|
||||
|
||||
if (original_command)
|
||||
SetEnvironmentVariable("SSH_ORIGINAL_COMMAND", original_command);
|
||||
|
||||
// set better prompt for Windows cmd shell
|
||||
if (!s -> is_subsystem) {
|
||||
snprintf(buf,sizeof buf, "%s@%s $P$G", s->pw->pw_name, getenv("COMPUTERNAME"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user