chiark / gitweb /
ssh-quoting: Fix odd line breaks
authorColin Watson <cjwatson@debian.org>
Fri, 11 Jun 2021 10:42:18 +0000 (11:42 +0100)
committerColin Watson <cjwatson@debian.org>
Fri, 11 Jun 2021 10:42:18 +0000 (11:42 +0100)
content/ssh-quoting.md

index 0626c096390dac92192cbc470b923c6b8577b037..6d6b32a18909537257d6e1b8e9c09420873266eb 100644 (file)
@@ -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: