fix a bug in word splitting that could potentially drop the first word; complete -p now prefixes the compspec for commands that begin with -' with --'; several builtins updated to use $'...' quoting for output when appropriate

This commit is contained in:
Chet Ramey
2026-04-02 11:02:52 -04:00
parent 55f721c51e
commit 1cbe8c04bb
14 changed files with 199 additions and 149 deletions
+1 -1
View File
@@ -6782,7 +6782,7 @@ error_token_from_token (int tok)
break;
case ARITH_FOR_EXPRS:
if (yylval.word_list)
t = string_list_internal (yylval.word_list, " ; ");
t = string_list_internal (yylval.word_list, " ; ", 0);
break;
case COND_CMD:
t = (char *)NULL; /* punt */