From bb2734a3899aed931390ec16a64c5938cb68277c Mon Sep 17 00:00:00 2001 From: jakanakae-envangel Date: Sun, 1 Sep 2019 17:50:36 +0200 Subject: man: Regex chars have to be escaped in setlocal --- doc/ranger.1 | 5 +++-- doc/ranger.pod | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/ranger.1 b/doc/ranger.1 index 5ce8566a..361ce182 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.9.3" "2021-09-01" "ranger manual" +.TH RANGER 1 "ranger-1.9.3" "2021-09-02" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -1713,7 +1713,8 @@ directory. If no path is given, uses the current directory. .Sp \&\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. +use \f(CW\*(C`path=~/dl$\*(C'\fR. To specify a folder with special characters +(.^$\e*+?(){}[]|), escape them with a backslash. .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 diff --git a/doc/ranger.pod b/doc/ranger.pod index 3fdc37d3..5138a15e 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -1856,7 +1856,8 @@ directory. If no path is given, uses the current directory. 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. +use C. To specify a folder with special characters +(.^$\*+?(){}[]|), escape them with a backslash. I can be quoted with either single or double quotes to prevent unwanted splitting. I or I -- cgit 1.4.1-2-gfad0