Return to arguments.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.29, 2020/03/21 13:16:15 | version 1.30, 2020/04/12 20:54:28 | ||
---|---|---|---|
|
|
||
char *escaped, *result; | char *escaped, *result; | ||
int flags; | int flags; | ||
if (*s == '\0') | if (*s == '\0') { | ||
return (xstrdup(s)); | xasprintf(&result, "''"); | ||
return (result); | |||
} | |||
if (s[0] != ' ' && | if (s[0] != ' ' && | ||
(strchr(quoted, s[0]) != NULL || s[0] == '~') && | (strchr(quoted, s[0]) != NULL || s[0] == '~') && | ||
s[1] == '\0') { | s[1] == '\0') { |