mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Shell: Do not parse history events in scripts
That makes no sense!
This commit is contained in:
parent
cad7865ad1
commit
a303b69caa
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