liip / liip/pontsun

Replace bash with sh

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement wontfix
Dominant language
No language data
Stars
13
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Using /bin/sh instead of bash would be nicer. Due to some bashism in the current scripts, it's not that easy.
Also some scripts need to know the directory where the script is located, which seems to be hard to figure out in a pure POSIX way, see https://stackoverflow.com/questions/29832037/how-to-get-script-directory-in-posix-sh#29834779

But if anyone wants to take this up and give it a try, you're very welcome.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the repository's current scripts and the linked POSIX script-directory discussion first. Identify the bash-specific constructs and directory-resolution requirements; done means the scripts run under /bin/sh without bashisms.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, shell
Domain
tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.