From c8214a3316a56edbe2773aac8c9e26054ef03f6f Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 11 Nov 2022 08:27:17 +0000 Subject: [PATCH] Document alternative delimiters for substitution, from Jim Wisniewski. --- usr.bin/tmux/tmux.1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 0129869d43e..cf94e7eb676 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.906 2022/11/10 22:58:39 jmc Exp $ +.\" $OpenBSD: tmux.1,v 1.907 2022/11/11 08:27:17 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 10 2022 $ +.Dd $Mdocdate: November 11 2022 $ .Dt TMUX 1 .Os .Sh NAME @@ -5080,6 +5080,15 @@ would change .Ql abABab into .Ql bxBxbx . +A different delimiter character may also be used, to avoid collisions with +literal slashes in the pattern. +For example, +.Ql s|foo/|bar/|: +will substitute +.Ql foo/ +with +.Ql bar/ +throughout. .Pp In addition, the last line of a shell command's output may be inserted using .Ql #() . -- 2.20.1