aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-26 20:55:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-26 20:55:55 +1200
commita9784dda9f9707342bed9fed1c07ed2336c73e0e (patch)
tree5ab4205a96569c1a39cab7ea3dba019fcee3806e
parentRemove ad() (diff)
downloaddotfiles-a9784dda9f9707342bed9fed1c07ed2336c73e0e.tar.gz
dotfiles-a9784dda9f9707342bed9fed1c07ed2336c73e0e.zip
Make a caveat of swr(1df) clearer
-rw-r--r--bin/swr.sh2
-rw-r--r--man/man1/swr.1df5
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/swr.sh b/bin/swr.sh
index 47c84b86..5bad63ae 100644
--- a/bin/swr.sh
+++ b/bin/swr.sh
@@ -1,4 +1,4 @@
-# Transparently wrap scp(1) targets on the command line
+# Transparently wrap scp(1) targets to read (not write) on the command line
self=swr
# Create a temporary directory with name in $td, and handle POSIX-ish traps to
diff --git a/man/man1/swr.1df b/man/man1/swr.1df
index 8792b0ed..4c40a6f0 100644
--- a/man/man1/swr.1df
+++ b/man/man1/swr.1df
@@ -1,7 +1,7 @@
.TH SWR 1df "January 2017" "Manual page for swr"
.SH NAME
.B swr
-\- run a command including remote file arguments for scp(1) retrieval
+\- run a command including remote file arguments for scp(1) reading
.SH SYNOPSIS
.B swr
cat remote:.ssh/authorized_keys
@@ -18,6 +18,9 @@ circumstances.
This even works for the first argument (i.e. the command), provided that it
will run on the local system once copied in.
.SH CAVEATS
+You can't write to remote files with it. The arguments only work as input
+streams, so e.g. "cp .vimrc remote:.vimrc" won't do what you expect.
+.P
This only works for simple commands; you can't put shell syntax into any of the
arguments.
.P