fix to readline redisplay of invisible chars at end of line; fix to here-document delimiter quote removal; prompt expansion makes invisible chars in w, W, s visible

This commit is contained in:
Chet Ramey
2022-03-07 09:21:09 -05:00
parent 6c4a9a5cb7
commit b4e5e5505c
13 changed files with 129 additions and 24 deletions
+4 -4
View File
@@ -5742,9 +5742,9 @@ decode_prompt_string (string)
temp = base_pathname (shell_name);
/* Try to quote anything the user can set in the file system */
if (promptvars || posixly_correct)
temp = sh_backslash_quote_for_double_quotes (temp, 0);
temp = sh_backslash_quote_for_double_quotes (temp, 1);
else
temp = savestring (temp);
temp = sh_strvis (temp);
goto add_string;
case 'v':
@@ -5819,9 +5819,9 @@ decode_prompt_string (string)
/* Make sure that expand_prompt_string is called with a
second argument of Q_DOUBLE_QUOTES if we use this
function here. */
temp = sh_backslash_quote_for_double_quotes (t_string, 0);
temp = sh_backslash_quote_for_double_quotes (t_string, 1);
else
temp = savestring (t_string);
temp = sh_strvis (t_string);
goto add_string;
}