Skip to content

feat(exec): 添加shebang脚本支持#1511

Merged
fslongjin merged 3 commits intoDragonOS-Community:masterfrom
fslongjin:feat-add-shebang-support
Dec 19, 2025
Merged

feat(exec): 添加shebang脚本支持#1511
fslongjin merged 3 commits intoDragonOS-Community:masterfrom
fslongjin:feat-add-shebang-support

Conversation

@fslongjin
Copy link
Member

  • 新增shebang模块,实现脚本解析和递归执行
  • 重构exec模块,支持递归加载和上下文跟踪
  • 添加测试程序验证shebang功能

- 新增shebang模块,实现脚本解析和递归执行
- 重构exec模块,支持递归加载和上下文跟踪
- 添加测试程序验证shebang功能

Signed-off-by: longjin <longjin@DragonOS.org>
@github-actions github-actions bot added the enhancement New feature or request label Dec 19, 2025
- Added #[inline(never)] attribute to the parse_shebang_line function for optimization purposes.
- This change aims to improve performance by controlling inlining behavior during compilation.

Signed-off-by: longjin <longjin@DragonOS.org>
@fslongjin fslongjin merged commit c557b9b into DragonOS-Community:master Dec 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant