[Bug 2283] option to execute command without shell

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Apr 23 15:09:18 AEST 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2283

Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au

--- Comment #1 from Darren Tucker <dtucker at zip.com.au> ---
What's your use case for this?

In the past I've done this kind of thing to avoid one layer of shell
quoting, but it only works for cases where you don't want the remote
end to read stdin:

$ ssh localhost /bin/sh <<EOD
> echo '"'
> EOD
"

vs

$ ssh localhost /bin/sh echo '"'
bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list