summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/arguments.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-05-27 12:16:27 +0000
committernicm <nicm@openbsd.org>2019-05-27 12:16:27 +0000
commit1c947278897ea42901a37c45dbb42578a89160de (patch)
tree3b245b8b65ecdf2613833fde2ac133d19e65db32 /usr.bin/tmux/arguments.c
parentUse getopts instead of getopt(1) (diff)
downloadwireguard-openbsd-1c947278897ea42901a37c45dbb42578a89160de.tar.xz
wireguard-openbsd-1c947278897ea42901a37c45dbb42578a89160de.zip
Add an additional {} syntax for defining strings in the configuration
file, making it much tidier to define commands that contain other tmux or shell commands (like if-shell). Also tweak bind-key to expect a string if it is only given one argument, so {} can be used with it as well. From Avi Halachmi.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r--usr.bin/tmux/arguments.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index 143089e28b8..e00ea617da4 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.22 2019/05/23 14:03:44 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.23 2019/05/27 12:16:27 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -207,7 +207,7 @@ args_print(struct args *args)
char *
args_escape(const char *s)
{
- static const char quoted[] = " #\"';$";
+ static const char quoted[] = " #\"';${}";
char *escaped, *result;
int flags;