Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bash-3.2 #5193

Open
500-internal-server-error opened this issue Feb 4, 2025 · 3 comments
Open

Add bash-3.2 #5193

500-internal-server-error opened this issue Feb 4, 2025 · 3 comments

Comments

@500-internal-server-error

Would be nice to test for script compatibility with MacOS. See the AUR package here. Comes with its own set of patches. Not sure how hard it would be to port them, or if the MSYS2 patches with them.

@lazka
Copy link
Member

lazka commented Feb 4, 2025

Not really something we care about.

Can't you use zsh on MacOS nowadays? Or bash from homebrew?

@500-internal-server-error
Copy link
Author

That is one solution, but then my scripts are uncheckable by shellcheck (though in practice, pretending it's bash is good enough). Also zsh is rarer on Linux. My goal is to have a "universal" script, which works out-of-the-box on Windows (Cygwin/MSYS2/WSL), MacOS, and Linux. Among these targets, the lowest common denominator is bash, specifically bash-3.2. I guess I can target sh, but it's a significantly reduced shell compared to bash.

@lazka
Copy link
Member

lazka commented Feb 4, 2025

Yeah, tricky

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

No branches or pull requests

2 participants