Updated Remote command line escaping rules (markdown)

Yanbing 2019-01-12 23:06:27 -08:00
parent 41ec62dd6e
commit 9702183332

@ -1,12 +1,13 @@
OpenSSH follow the below rules to determine if the " and \ in shell arguments are escaped or not
| DefaultShell | DefaultShellEscapeArguments |ShellPath is double quoted |" and \ are escaped in arguments| | DefaultShell | DefaultShellEscapeArguments |ShellPath is double quoted |" and \ are escaped in arguments|
|--|--|--|--| |---|--|--|--|
| powershell | 1, 0, missing | yes | yes | | powershell | value is ignored| yes | yes |
| bash | 1, 0, missing | Yes | Yes| | bash | value is ignored | Yes | Yes|
| cygwin | 1, 0, missing | Yes | Yes | | cygwin | value is ignored | Yes | Yes |
| cmd.exe | 1, 0, missing | Yes | No | | cmd.exe | value is ignored | Yes | No |
| ssh-shellhost.exe | 1, 0, missing | Yes | No | | ssh-shellhost.exe | value is ignored | Yes | No |
| Other custom shells | 1, missing | Yes | Yes | | Other custom shells | 1, not set | Yes | Yes |
| Other custom shells | 0 | Yes | No| | Other custom shells | 0 | Yes | No|
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.