Open
Description
The arguments to ssh(1) are joined by spaces and split again on the remote end. Therefore, —
ssh foo printf '[%s]' bar
will do globbing;ssh foo mycommand $bar
will word-split $barssh foo mycommand $bar
willeval
any metacharacters in $bar (e.g., ifbar="lorem;ipsum"
thenipsum
will be executed)
Is there anything here that we can highlight as a warning? (Compare #691.)