mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 20:50:42 +02:00
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:
+2
-4
@@ -418,9 +418,7 @@ check_mail (void)
|
||||
int i, use_user_notification;
|
||||
char *dollar_underscore, *temp;
|
||||
|
||||
dollar_underscore = get_string_value ("_");
|
||||
if (dollar_underscore)
|
||||
dollar_underscore = savestring (dollar_underscore);
|
||||
dollar_underscore = save_lastarg ();
|
||||
|
||||
for (i = 0; i < mailfiles_count; i++)
|
||||
{
|
||||
@@ -481,7 +479,7 @@ check_mail (void)
|
||||
|
||||
if (dollar_underscore)
|
||||
{
|
||||
bind_variable ("_", dollar_underscore, 0);
|
||||
bind_lastarg (dollar_underscore);
|
||||
free (dollar_underscore);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user