Re: Why are the arguments supplied for the command run through ssh interpreted by shell before they are passed to the command on the server side?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Sat, Jan 11, 2020 at 02:52:13PM +0100, Gert Doering wrote:
> On Sat, Jan 11, 2020 at 01:38:53PM +0000, Colin Watson wrote:
> >   ssh host cat 'path with spaces'
> >   ssh host "cat 'path with spaces'"
> 
> Too many shells involved...
> 
> This is really not a "SSH problem" but a "unix command line *left and right*
> which both have ideas about interpretation of specific characters".

It's an SSH problem specifically in that I do not believe it is possible
to correctly determine what quoting to use from ssh(1) even if you
understand Unix shell quoting rules.

Changing ssh's behaviour now would be extremely disruptive, but that's
not what I was suggesting.

-- 
Colin Watson                                       [cjwatson@xxxxxxxxxx]
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux