tmux.conf: Fix unknown key: confirm-before error message
authorDarshaka Pathirana <dpat@syn-net.org>
Wed, 20 May 2020 14:51:47 +0000 (16:51 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Wed, 20 May 2020 15:18:30 +0000 (17:18 +0200)
commitc2cbdb01a40774442497ba9d1f153affea8bb1fb
tree4db88792b1ca1d32254fd3717e5f4462fa68e04c
parent1ebc9330553d7f14c7cc511b053e6ad5666453d3
tmux.conf: Fix unknown key: confirm-before error message

Quoting the man page tmux(1) of v3.1b:

| Any other characters preceded by \ are replaced by themselves (that is,
| the \ is removed) and are not treated as having any special meaning - so
| for example \; will not mark a command sequence and \$ will not expand
| an environment variable.

and quoting the man page tmux(1) of v2.8:

| Each command should be separated by spaces and a semicolon; commands are
| executed sequentially from left to right and lines ending with a
| backslash continue on to the next line, except when escaped by another
| backslash.  A literal semicolon may be included by escaping it with a
| backslash (for example, when specifying a command sequence to bind-key).

This implies that a backslash should also be escaped by a backslash but
tmux still used to work with the unescaped backslash in older versions.

This change has been tested with the tmux versions running
Debian/jessie, Debian/stretch, Debian/buster and Debian/bullseye
(currently testing):

* Debian/jessie: v1.9
* Debian/stretch: v2.3
* Debian/buster: v2.8
* Debian/bullseye: v3.1

Closes: grml/grml-etc-core#93
etc/tmux.conf