=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/arguments.c,v retrieving revision 1.25 retrieving revision 1.26 diff -c -r1.25 -r1.26 *** src/usr.bin/tmux/arguments.c 2019/05/29 20:05:14 1.25 --- src/usr.bin/tmux/arguments.c 2019/06/20 07:10:56 1.26 *************** *** 1,4 **** ! /* $OpenBSD: arguments.c,v 1.25 2019/05/29 20:05:14 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: arguments.c,v 1.26 2019/06/20 07:10:56 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott *************** *** 213,219 **** if (*s == '\0') return (xstrdup(s)); ! if ((strchr(quoted, s[0]) != NULL || s[0] == '~') && s[1] == '\0') { xasprintf(&escaped, "\\%c", s[0]); return (escaped); } --- 213,221 ---- if (*s == '\0') return (xstrdup(s)); ! if (s[0] != ' ' && ! (strchr(quoted, s[0]) != NULL || s[0] == '~') && ! s[1] == '\0') { xasprintf(&escaped, "\\%c", s[0]); return (escaped); }