mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Shell: Do not parse history events in scripts
That makes no sense!
This commit is contained in:
parent
cad7865ad1
commit
a303b69caa
Notes:
sideshowbarker
2024-07-18 21:39:50 +09:00
Author: https://github.com/alimpfard
Commit: a303b69caa
Pull-request: https://github.com/SerenityOS/serenity/pull/5652
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/BenWiederhake
4 changed files with 11 additions and 9 deletions
|
@ -1118,7 +1118,7 @@ RefPtr<AST::Node> Parser::parse_expression()
|
|||
return read_concat(create<AST::CastToList>(move(list))); // Cast To List
|
||||
}
|
||||
|
||||
if (starting_char == '!') {
|
||||
if (starting_char == '!' && m_in_interactive_mode) {
|
||||
if (auto designator = parse_history_designator())
|
||||
return designator;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue