mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-24 03:59:09 +00:00
Shell: Do not parse history events in scripts
That makes no sense!
This commit is contained in:
committed by
Andreas Kling
parent
cad7865ad1
commit
a303b69caa
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user