Bug 17858 – install.sh fails when given the -p | --path option
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
installer
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2017-09-26T03:54:01Z
Last change time
2017-09-26T14:45:38Z
Assigned to
No Owner
Creator
Jon Degenhardt
Comments
Comment #0 by jrdemail2000-dlang — 2017-09-26T03:54:01Z
The install.sh script downloaded from https://dlang.org/install.sh fails when the '-p | --path' option is used. It fails with a message indicating the path argument is an unrecognized option.
For example, the docker-ldc Dockerfile uses the following sequence:
curl -fsS -o /tmp/install.sh https://dlang.org/install.sh
bash /tmp/install.sh -p /dlang install -s "${COMPILER}-${COMPILER_VERSION}"
The second fails with the error:
Unrecognized command-line parameter: /dlang
This appears to have been recently introduced by installer PR 252: https://github.com/dlang/installer/pull/252. See comments on the PR for a description.
Comment #1 by dlang-bugzilla — 2017-09-26T14:45:38Z