Shell: Correct FdRedirection inheriting from two RefCounted bases

Also add missing calls to `adopt()`.
This commit is contained in:
AnotherTest 2020-08-04 14:23:23 +04:30 committed by Andreas Kling
commit 1d08cab9ab
Notes: sideshowbarker 2024-07-19 04:19:59 +09:00
5 changed files with 32 additions and 22 deletions

View file

@ -187,7 +187,7 @@ int main(int argc, char** argv)
Vector<String> args;
for (auto* arg : script_args)
args.empend(arg);
shell->set_local_variable("ARGV", *new AST::ListValue(move(args)));
shell->set_local_variable("ARGV", adopt(*new AST::ListValue(move(args))));
}
if (command_to_run) {