Shell script shebang report
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 784
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 58
Description
In computing, a shebang is the character sequence #!, consisting of the characters number sign (also known as sharp or hash) and exclamation mark (also known as bang), at the beginning of a script. It is also called sharp-exclamation, sha-bang, hashbang, pound-bang, or hash-pling.
https://en.wikipedia.org/wiki/Shebang_(Unix)
Seems we are using 3 different types of shebangs for the shell scripts. Perhaps there are reasons but maybe we should try to standardize our shebangs as much as possible.
See below from Ubuntu Linux command line:
```
sedona$ find . -name "*.sh" | wc -l
11
```
```
sedona$ find . -name "*.sh" -exec grep -Il '^#![[:blank:]]*/bin/sh*' {} +
./docker/zeppelin/update-zeppelin-interpreter.sh
```
```
sedona$ find . -name "*.sh" -exec grep -Il '^#![[:blank:]]*/bin/bash*' {} +
./docker/build.sh
./docker/install-sedona.sh
./docker/install-zeppelin.sh
./docker/install-spark.sh
./.github/workflows/scripts/prepare_sparklyr_sedona_test_env.sh
./.github/workflows/scripts/install_r_deps.sh
./.github/workflows/scripts/install_system_deps_for_r_build.sh
./scripts/pre-commit/check_makefiles_for_tabs.sh
```
```
sedona$ find . -name "*.sh" -exec grep -Il '^#![[:blank:]]*/usr/bin/*' {} +
./docker/test-notebooks.sh
./docker/start.sh
```
Contributor guide
Research direction
Review the 11 .sh files listed in the issue, including docker/build.sh, docker/start.sh, the Docker installation scripts, and .github/workflows/scripts. Compare their existing shebangs and determine the project-consistent standard before making changes. Done means the shell scripts use standardized shebangs where appropriate and the listed variations have an explicit reason or are removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, shell
- Domain
- devops, tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100