mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-01 01:20:00 +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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user