The first command of a nested compound command receives no arguments

Gert Doering gert at greenie.muc.de
Mon Oct 22 04:30:44 AEDT 2018


Hi,

On Sun, Oct 21, 2018 at 10:21:56AM -0700, Parke wrote:
> Thanks to Timo and Christian for their answers.
> 
> On Sun, Oct 21, 2018 at 3:32 AM Timo Kilpilehto <timo at kilpilehto.fi> wrote:
> > eval sh -c "echo none of this makes any difference"
> 
> Where is it documented that ssh is going to eval my command?  The fact
> remains that ssh does not transparently pass the command to the remote
> host.

This is not a *ssh* thing, but a generic "how does quoting on unix work
if two levels of shell are involved".

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             gert at greenie.muc.de


More information about the openssh-unix-dev mailing list