patch - forceshell

Don Mahurin dmahurin at
Sat Oct 6 11:01:51 EST 2001

> > ssh localhost echo "lost&&found"
> >
> > Though it's many a problem that most popular shells can only execute
> > single string commands at the command line, and ssh relies on the shell.
> >
> > Either ssh could exec the command itself, or re-quote everything.
> It is your shell which is messing up the quoting here.

ssh discards the argument separation, and passes command and arguments as one
string to the shell.

forget the calling shell,
the C call: execlp ("ssh","ssh", "localhost", "echo", "lost&&found", NULL)
does the same thing.


More information about the openssh-unix-dev mailing list