tmux.conf: Fix /etc/tmux.conf:19: unknown key: \\ error message
authorDarshaka Pathirana <dpat@syn-net.org>
Tue, 26 May 2020 18:28:28 +0000 (20:28 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Tue, 26 May 2020 18:28:28 +0000 (20:28 +0200)
commitda9a55e697a408e9fe320f6a68454bbac35577cd
treeb00a408b3c190799a0eb6c68bafa91708467c242
parent1d927f2f77c896a86c0176bd878bd13075cdc87e
tmux.conf: Fix /etc/tmux.conf:19: unknown key: \\ error message

The previous change (see: c2cbdb01) tried to fix the error
  "unknown key:  confirm-before".

Unfortunately that change only solved the problem for tmux v3.0+.
(Starting a new tmux session and reloading the configuration did not
bring up the error message in the older (<v3.0) tmux versions, so I
wrongly assumed that the change also worked for older versions.)

The changelog ("CHANGES FROM 2.9 to 3.0") states the following:

|  INCOMPATIBLE: tmux's configuration parsing has changed to use yacc(1). There
|  is one incompatible change: a \ on its own must be escaped or quoted as
|  either \\ or '\' (the latter works on older tmux versions).

|  Entirely the same parser is now used for parsing the configuration file
|  and for string commands. This means that constructs previously only
|  available in .tmux.conf, such as %if, can now be used in string commands
|  (for example, those given to if-shell - not commands invoked from the
|  shell, they are still parsed by the shell itself).

This change has been tested (I really hope so!) with the tmux versions
running Debian/jessie (docker), Debian/stretch (docker), Debian/buster
(host system) and Debian/bullseye (Grml daily ISO):

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

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