diff options
Diffstat (limited to 'arguments.c')
-rw-r--r-- | arguments.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arguments.c b/arguments.c index ef67107d..0495aa0e 100644 --- a/arguments.c +++ b/arguments.c @@ -227,6 +227,11 @@ args_escape(const char *s) return (escaped); } + if (strchr(s, ' ') != NULL && strchr(s, '\'') == NULL) { + xasprintf(&escaped, "'%s'", s); + return (escaped); + } + flags = VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL; if (s[strcspn(s, quoted)] != '\0') flags |= VIS_DQ; |