Return to arguments.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.25, 2019/05/29 20:05:14 | version 1.26, 2019/06/20 07:10:56 | ||
---|---|---|---|
|
|
||
if (*s == '\0') | if (*s == '\0') | ||
return (xstrdup(s)); | return (xstrdup(s)); | ||
if ((strchr(quoted, s[0]) != NULL || s[0] == '~') && s[1] == '\0') { | if (s[0] != ' ' && | ||
(strchr(quoted, s[0]) != NULL || s[0] == '~') && | |||
s[1] == '\0') { | |||
xasprintf(&escaped, "\\%c", s[0]); | xasprintf(&escaped, "\\%c", s[0]); | ||
return (escaped); | return (escaped); | ||
} | } |