fix history expansion to not perform quick substitution on a new line that's part of a quoted string; save the value of $_ around prompt string decoding

This commit is contained in:
Chet Ramey
2023-12-19 09:56:34 -05:00
parent 9d51df7546
commit aa2d23cfac
24 changed files with 1973 additions and 1779 deletions
+11
View File
@@ -4089,6 +4089,17 @@ execute_cond_command (COND_COM *cond_command)
}
#endif /* COND_COMMAND */
char *
save_lastarg (void)
{
char *v;
v = get_string_value ("_");
if (v)
v = savestring (v);
return v;
}
void
bind_lastarg (char *arg)
{