summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-24 05:14:46 +0100
committernfnty <git@nfnty.se>2017-01-24 05:21:03 +0100
commit94dc542c80d56afd2edf9c80e5f4031770920f94 (patch)
tree8908e3e80908b7f321f7175138d940714bdb95ba /doc
parent14f6e996305933d2a37d02c3a3ed87dc4a66b5e3 (diff)
downloadranger-94dc542c80d56afd2edf9c80e5f4031770920f94.tar.gz
config.commands: `setlocal`: Properly parse path with spaces
Added proper quote parsing

Fixes #753
Diffstat (limited to 'doc')
-rw-r--r--doc/ranger.15
-rw-r--r--doc/ranger.pod3
-rw-r--r--doc/rifle.12
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index 095e061a..a26043ce 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -129,7 +129,7 @@
 .\" ========================================================================
 .\"
 .IX Title "RANGER 1"
-.TH RANGER 1 "ranger-1.8.1" "01/08/2017" "ranger manual"
+.TH RANGER 1 "ranger-1.8.1" "2017-01-24" "ranger manual"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -1241,6 +1241,9 @@ directory. If no path is given, uses the current directory.
 \&\fIpath\fR is a regular expression.  This means that \f(CW\*(C`path=~/dl\*(C'\fR applies to all
 paths that start with \fI~/dl\fR, e.g. \fI~/dl2\fR and \fI~/dl/foo\fR. To avoid this,
 use \f(CW\*(C`path=~/dl$\*(C'\fR.
+.Sp
+\&\fIpath\fR can be quoted with either single or double quotes to prevent unwanted
+splitting. \fIpath='~/dl dl$'\fR or \fIpath=\*(L"~/dl dl$\*(R"\fR
 .IP "shell [\-\fIflags\fR] \fIcommand\fR" 2
 .IX Item "shell [-flags] command"
 Run a shell command.  \fIflags\fR are discussed in their own section.
diff --git a/doc/ranger.pod b/doc/ranger.pod
index fe2b45eb..e7f7acdc 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -1296,6 +1296,9 @@ I<path> is a regular expression.  This means that C<path=~/dl> applies to all
 paths that start with I<~/dl>, e.g. I<~/dl2> and I<~/dl/foo>. To avoid this,
 use C<path=~/dl$>.
 
+I<path> can be quoted with either single or double quotes to prevent unwanted
+splitting. I<path='~/dl dl$'> or I<path="~/dl dl$">
+
 =item shell [-I<flags>] I<command>
 
 Run a shell command.  I<flags> are discussed in their own section.
diff --git a/doc/rifle.1 b/doc/rifle.1
index 1e75474f..66d5627f 100644
--- a/doc/rifle.1
+++ b/doc/rifle.1
@@ -129,7 +129,7 @@
 .\" ========================================================================
 .\"
 .IX Title "RIFLE 1"
-.TH RIFLE 1 "rifle-1.8.1" "01/08/2017" "rifle manual"
+.TH RIFLE 1 "rifle-1.8.1" "2017-01-24" "rifle manual"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l