sos icon indicating copy to clipboard operation
sos copied to clipboard

sos remote run cannot handle commands with quotation marks and redirects

Open BoPeng opened this issue 6 years ago • 0 comments

Basically, sos remote run host --cmd command translates to

ssh -q host "bash --login -c 'command'"

so the command will fail if it contains ' or ", or > when command in `--cmd "command"' has to be quoted.

Not sure how to safely pass quotations in scenarios like this though.

BoPeng avatar Apr 16 '19 15:04 BoPeng