Add a -A flag to show-options to show parent options as well.

This commit is contained in:
nicm
2019-06-20 07:10:56 +00:00
parent ae541287d3
commit cd1fc42df6
3 changed files with 60 additions and 27 deletions

View File

@ -213,7 +213,9 @@ args_escape(const char *s)
if (*s == '\0')
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]);
return (escaped);
}