From b8529670978e9f0e6ef923f6cf488aa936cab0e5 Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 1 Mar 2021 17:49:08 +0000 Subject: [PATCH] escape quotes and remove some unneccessary Pp; ok nicm --- usr.bin/tmux/tmux.1 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 35dd9d39ad0..78fea65cd94 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.825 2021/03/01 10:44:38 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.826 2021/03/01 17:49:08 jmc Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -544,7 +544,7 @@ for example in these .Xr sh 1 commands: .Bd -literal -offset indent -$ tmux neww\\; splitw +$ tmux neww\e\e; splitw .Ed .Pp Or: @@ -563,7 +563,7 @@ For this typically means quoted (such as .Ql neww ';' splitw ) or escaped (such as -.Ql neww \\\\; splitw ) . +.Ql neww \e\e\e\e; splitw ) . .It Individual semicolons or trailing semicolons that should be interpreted as arguments should be escaped twice: once according to the shell conventions and @@ -571,18 +571,16 @@ a second time for .Nm ; for example: .Bd -literal -offset indent -$ tmux neww 'foo\\;' bar -$ tmux neww foo\\\\; bar +$ tmux neww 'foo\e\e;' bar +$ tmux neww foo\e\e\e\e; bar .Ed -.Pp .It Semicolons that are not individual tokens or trailing another token should only be escaped once according to shell conventions; for example: .Bd -literal -offset indent $ tmux neww 'foo-;-bar' -$ tmux neww foo-\\;-bar +$ tmux neww foo-\e\e;-bar .Ed -.Pp .El .Pp Comments are marked by the unquoted # character - any remaining text after a -- 2.20.1