Bug 19451 – install.sh script assumes bash interpreter, but FreeBSD does not include bash by default

Status
NEW
Severity
enhancement
Priority
P4
Component
installer
Product
D
Version
D2
Platform
All
OS
FreeBSD
Creation time
2018-11-29T23:28:31Z
Last change time
2025-01-02T15:46:59Z
Assigned to
No Owner
Creator
n4jm4
Moved to GitHub: installer#695 →

Comments

Comment #0 by n4jm4 — 2018-11-29T23:28:31Z
The install.sh script referenced on: * https://dlang.org/download.html * https://dlang.org/dmd-freebsd.html Uses a bash shebang, which does not work out of the box on many UNIX systems, such as FreeBSD, where bash is not installed by default. Could we rewrite this script in pure POSIX sh, for a more portable UNIX installer?
Comment #1 by dlang-bugzilla — 2020-11-27T18:46:07Z
(In reply to andrew.pennebaker from comment #0) > Could we rewrite this script in pure POSIX sh, for a more portable UNIX > installer? Unlikely, POSIX shell has much fewer features compared to bash, so this would make the script significantly more complicated and bug-prone.
Comment #2 by robert.schadek — 2025-01-02T15:46:59Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/installer/issues/695 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB