diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-27 12:16:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-27 12:16:28 +0000 |
commit | e52990e8cd5c494c43baefe2263a7be6d2b64b35 (patch) | |
tree | 6287759ee64e717b3d5a06850b0a086729a35dd5 /usr.bin/tmux/arguments.c | |
parent | e83d6e71d661bb60ab9e411023ef755ccf52217f (diff) |
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.c | 4 |
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; |