mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-26 23:44:35 +02:00
add cmd samples
parent
ce89749ea2
commit
ef4a94e245
@ -1,13 +1,13 @@
|
|||||||
OpenSSH follow the below rules to determine if the " and \ in shell arguments are escaped or not
|
OpenSSH follow the below rules to determine if the " and \ in shell arguments are escaped or not
|
||||||
|
|
||||||
| DefaultShell | DefaultShellEscapeArguments | Path to default shell is double quoted |" and \ in arguments are escaped|
|
| DefaultShell | example to print out "hello" <br/>(client cmd run in cmd prompt)| Notes |
|
||||||
|--|--|--|--|
|
|--|--|--|
|
||||||
| powershell | value is ignored| yes | yes |
|
| powershell | ``c:\>ssh.exe localhost echo `\"hello`\"``<br/>`c:\>"hello"` | PS strip the " |
|
||||||
| bash | value is ignored | Yes | Yes|
|
| bash | to be added | |
|
||||||
| cygwin | value is ignored | Yes | Yes |
|
| cygwin | to be added | |
|
||||||
| cmd.exe | value is ignored | Yes | No |
|
| cmd.exe | `c:\>ssh.exe localhost echo \"hello\"`<br/>`c:\>"hello"` | |
|
||||||
| ssh-shellhost.exe | value is ignored | Yes | No |
|
| ssh-shellhost.exe | to be added | |
|
||||||
| shells other than above | 1, not set | Yes | Yes |
|
| shells other than above | 1, not set | |
|
||||||
| shells other than above | 0 | Yes | No|
|
| shells other than above | 0 | |
|
||||||
|
|
||||||
Please refer to [DefaultShell](https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell) for setting DefaultShell and DefaultShellEscapeArguments.
|
Please refer to [DefaultShell](https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell) for setting DefaultShell and DefaultShellEscapeArguments.
|
Loading…
x
Reference in New Issue
Block a user