From e870f11bedf3e70a3e7a46597dd93ea373b7f4ee Mon Sep 17 00:00:00 2001 From: Yanbing Date: Sun, 13 Jan 2019 23:33:38 -0800 Subject: [PATCH] Updated Remote command line escaping rules (markdown) --- Remote-command-line-escaping-rules.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Remote-command-line-escaping-rules.md b/Remote-command-line-escaping-rules.md index 3790084..761dd89 100644 --- a/Remote-command-line-escaping-rules.md +++ b/Remote-command-line-escaping-rules.md @@ -1,13 +1,13 @@ OpenSSH follow the below rules to determine if the " and \ in shell arguments are escaped or not -| DefaultShell | example to print out "hello"
(client cmd run in cmd prompt)| Notes | -|--|--|--| -| powershell | ``c:\>ssh.exe localhost echo `\"hello`\"``
`c:\>"hello"` | PS strip the " | -| bash | to be added | | -| cygwin | to be added | | -| cmd.exe | `c:\>ssh.exe localhost echo \"hello\"`
`c:\>"hello"` | | -| ssh-shellhost.exe | to be added | | -| shells other than above | 1, not set | | -| shells other than above | 0 | | +| DefaultShell | DefaultShellEscapeArguments |Example to print out "hello"
(client cmd run in cmd prompt)| Notes | +|:--|:--|:--|:--| +| powershell | N/A | ``c:\>ssh.exe localhost echo `\"hello`\"`` | PS strip the " | +| bash | N/A | to be added | | +| cygwin | N/A | to be added | | +| cmd.exe | N/A | `c:\>ssh.exe localhost echo \"hello\"` | | +| ssh-shellhost.exe | N/A | to be added | | +| shells other than above | 1, not set | | | +| shells other than above | 0 | | | Please refer to [DefaultShell](https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell) for setting DefaultShell and DefaultShellEscapeArguments. \ No newline at end of file