From: Colin Watson Date: Fri, 11 Jun 2021 10:42:18 +0000 (+0100) Subject: ssh-quoting: Fix odd line breaks X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=d2d3e9e231a1a43edcc7df5c09571ca15b2a3fd4;p=blog.git ssh-quoting: Fix odd line breaks --- diff --git a/content/ssh-quoting.md b/content/ssh-quoting.md index 0626c096..6d6b32a1 100644 --- a/content/ssh-quoting.md +++ b/content/ssh-quoting.md @@ -62,8 +62,7 @@ original working directory. The second example was this: - $ ssh user@machine.local bash -lc - "pwd;cd /tmp;pwd" + $ ssh user@machine.local bash -lc "pwd;cd /tmp;pwd" /home/user /tmp @@ -73,8 +72,7 @@ Following the logic above, this ends up as if you'd run this on the server: The third example was this: - $ ssh user@machine.local bash -lc "cd - /tmp;cd /tmp;pwd" + $ ssh user@machine.local bash -lc "cd /tmp;cd /tmp;pwd" /tmp And this is as if you'd run: