Skip to content

POSIXify#36

Open
mcepl wants to merge 3 commits intonickclyde:masterfrom
openSUSE-Python:POSIXify
Open

POSIXify#36
mcepl wants to merge 3 commits intonickclyde:masterfrom
openSUSE-Python:POSIXify

Conversation

@mcepl
Copy link
Copy Markdown

@mcepl mcepl commented Apr 20, 2025

Replaces #30, because bloody GitHub cannot do proper stacked PRs.

saolof and others added 3 commits October 8, 2023 15:20
This replaces the mapfile + bash array code with a simple pipe into a while loop and simplifies the logic a bit.

It also makes the script more portable. The only remaining bashism is the pair of  echo -e "$options"  calls, which can be replaced with a slightly uglier printf "$options" if posix compatibility is desired. Then the script runs fine on dash.
It is possible to use (for example) /bin/dash now as /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants