mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 20:00:49 +02:00
change to behavior of '&' in pattern substitution replacement string; fix for blank lines in multiline commands saved in command history
This commit is contained in:
@@ -5433,8 +5433,11 @@ history_delimiting_chars (line)
|
||||
return (" ");
|
||||
}
|
||||
|
||||
/* Assume that by this point we are reading lines in a multi-line command.
|
||||
If we have multiple consecutive blank lines we want to return only one
|
||||
semicolon. */
|
||||
if (line_isblank (line))
|
||||
return ("");
|
||||
return (current_command_line_count > 1 && last_read_token == '\n' && token_before_that != '\n') ? "; " : "";
|
||||
|
||||
return ("; ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user