mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:54:58 +00:00
Utilities: Remove redundant program name element in Core::command() call
This removes a redundant program name element from the arguments Vector
in calls to Core::command().
The Shell's argument parsing logic tolerated the extra argument,
until 83609ad
.
This commit is contained in:
parent
45788d030a
commit
09bdd844b4
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
continue;
|
||||
auto ast_full_path = cpp_full_path.replace(".cpp", ".ast");
|
||||
outln("{}", cpp_full_path);
|
||||
auto res = Core::command("/bin/sh", { "sh", "-c", String::formatted("cpp-parser {} > {}", cpp_full_path, ast_full_path) }, {});
|
||||
auto res = Core::command("/bin/sh", { "-c", String::formatted("cpp-parser {} > {}", cpp_full_path, ast_full_path) }, {});
|
||||
VERIFY(!res.is_error());
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
continue;
|
||||
auto ast_full_path = cpp_full_path.replace(".cpp", ".txt");
|
||||
outln("{}", cpp_full_path);
|
||||
auto res = Core::command("/bin/sh", { "sh", "-c", String::formatted("cpp-preprocessor {} > {}", cpp_full_path, ast_full_path) }, {});
|
||||
auto res = Core::command("/bin/sh", { "-c", String::formatted("cpp-preprocessor {} > {}", cpp_full_path, ast_full_path) }, {});
|
||||
VERIFY(!res.is_error());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue