patch - forceshell

Damien Miller djm at mindrot.org
Sat Oct 6 08:17:32 EST 2001


On Fri, 5 Oct 2001, Don Mahurin wrote:

> Markus Friedl wrote:
> 
> > On Fri, Oct 05, 2001 at 09:41:57AM -0700, Don Mahurin wrote:
> > > (Imagine if ssh's problem of unquoting commands was fixed).
> >
> > what problem?
> 
> 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 localhost 'echo "lost&&found"'

-d

-- 
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's 
| http://www.mindrot.org          /   distributed filesystem'' - Dan Geer




More information about the openssh-unix-dev mailing list