Return to arguments.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.23, 2019/05/27 12:16:27 | version 1.24, 2019/05/28 18:30:30 | ||
---|---|---|---|
|
|
||
char *escaped, *result; | char *escaped, *result; | ||
int flags; | int flags; | ||
if (*s == '\0') | |||
return (xstrdup(s)); | |||
if ((strchr(quoted, s[0]) != NULL || s[0] == '~') && s[1] == '\0') { | if ((strchr(quoted, s[0]) != NULL || s[0] == '~') && s[1] == '\0') { | ||
xasprintf(&escaped, "\\%c", s[0]); | xasprintf(&escaped, "\\%c", s[0]); | ||
return (escaped); | return (escaped); |