mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
Kernel: Implement shebang executables ("#!/bin/sh")
This patch makes it possible to *run* text files that start with the characters "#!" followed by an interpreter. I've tested this with both the Serenity built-in shell and the Bash shell, and it works as expected. :^)
This commit is contained in:
parent
d754ac5bcb
commit
85d629103d
2 changed files with 40 additions and 0 deletions
|
@ -310,6 +310,8 @@ 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);
|
||||
|
||||
Thread* m_main_thread { nullptr };
|
||||
|
||||
RefPtr<PageDirectory> m_page_directory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue