The first command of a nested compound command receives no arguments

Christian Weisgerber naddy at mips.inka.de
Sun Oct 21 22:56:30 AEDT 2018


On 2018-10-21, Parke <parke.nexus at gmail.com> wrote:

> root at cosmic:~# ssh localhost dash -c 'echo 1 && echo 2 && echo 3'
>
> 2
> 3

This should give you an idea:

$ sh -c 'sh -c echo 1 && echo 2 && echo 3'      

2
3

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the openssh-unix-dev mailing list