From 94dc542c80d56afd2edf9c80e5f4031770920f94 Mon Sep 17 00:00:00 2001 From: nfnty Date: Tue, 24 Jan 2017 05:14:46 +0100 Subject: config.commands: `setlocal`: Properly parse path with spaces Added proper quote parsing Fixes #753 --- doc/ranger.1 | 5 ++++- doc/ranger.pod | 3 +++ doc/rifle.1 | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'doc') 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 is a regular expression. This means that C applies to all paths that start with I<~/dl>, e.g. I<~/dl2> and I<~/dl/foo>. To avoid this, use C. +I can be quoted with either single or double quotes to prevent unwanted +splitting. I or I + =item shell [-I] I Run a shell command. I 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 -- cgit 1.4.1-2-gfad0