From 1c947278897ea42901a37c45dbb42578a89160de Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 27 May 2019 12:16:27 +0000 Subject: 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. --- usr.bin/tmux/arguments.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/arguments.c') 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 @@ -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; -- cgit v1.2.3-59-g8ed1b