mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +00:00
Kernel: Support passing arguments in shebangged scripts
Add the ability to both pass arguments to scripts with shebangs (./script argument1 argument2) and to specify them in the shebang line (#!/usr/local/bin/bash -x -e) Fixes #585
This commit is contained in:
parent
e2c74762ff
commit
9131134704
Notes:
sideshowbarker
2024-07-19 11:30:56 +09:00
Author: https://github.com/karolba 🔰
Commit: 9131134704
Pull-request: https://github.com/SerenityOS/serenity/pull/692
2 changed files with 34 additions and 8 deletions
|
@ -318,7 +318,7 @@ private:
|
|||
int alloc_fd(int first_candidate_fd = 0);
|
||||
void disown_all_shared_buffers();
|
||||
|
||||
KResultOr<String> find_shebang_interpreter_for_executable(const String& executable_path);
|
||||
KResultOr<Vector<String>> find_shebang_interpreter_for_executable(const String& executable_path);
|
||||
|
||||
Thread* m_main_thread { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue