dsh-tool-wsl
WSL 命令行工具:在 WSL(Ubuntu)环境执行 bash 命令(wsl.exe -d <distro> -- bash -c),Windows 上取代 dsh-tool-bash
AI 分析
核心用途是跨平台执行 Linux 命令。适合在 Windows 环境下开发、但需要原生 Linux 终端环境执行脚本和工具的用户。
インストール
検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗
ドキュメント
README 全文を読む ↗配置
| 项 | 默认 | 说明 |
|---|---|---|
distro | Ubuntu | WSL 发行版名(wsl.exe -l -q 查看) |
wslExe | wsl.exe | wsl 可执行文件 |
loginShell | false | true 用 bash -lc(登录 shell),false 用 bash -c |
timeoutMs | 120000 | 前台默认超时 |
maxTimeoutMs | 600000 | 单次超时上限 |
maxOutputBytes | 64000 | 每流内存输出上限(溢出落盘) |
maxSpillBytes | 64MB | 溢出落盘上限 |
graceMs | 3000 | SIGTERM→SIGKILL 宽限 |
enableRunInBackground | true | 后台执行开关 |