Should we standardize the `shebangs` for Bash ?
未关闭
long-term-plan
priority: low
type:question
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 6 天 19 小时
- 30 天内合并 PR
- 32
描述
In the code I see different shebangs for shell scripts:
- `#!/bin/bash`
- `#!/usr/bin/env bash`
- `#!/usr/bin/bash`
- `#!/bin/sh`
https://en.wikipedia.org/wiki/Shebang_(Unix)
https://stackoverflow.com/questions/10376206/what-is-the-preferred-bash-shebang
贡献指南
调研方向
首先,盘点整个代码仓库中的 shell 脚本 shebang,并查看链接的参考资料,以比较其中列出的形式。确定采用单一约定是否合适,然后一致地更新受影响的脚本;当所选标准已应用并在相关位置完成文档记录时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- bash, shell
- 领域
- tooling
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100