D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19451 - install.sh script assumes bash interpreter, but FreeBSD does not include bash by default
Summary: install.sh script assumes bash interpreter, but FreeBSD does not include bash...
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: All FreeBSD
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-29 23:28 UTC by n4jm4
Modified: 2022-12-17 10:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description n4jm4 2018-11-29 23:28:31 UTC
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 Vladimir Panteleev 2020-11-27 18:46:07 UTC
(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.