www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17858] New: install.sh fails when given the -p | --path option

https://issues.dlang.org/show_bug.cgi?id=17858

          Issue ID: 17858
           Summary: install.sh fails when given the -p | --path option
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: installer
          Assignee: nobody puremagic.com
          Reporter: jrdemail2000-dlang yahoo.com

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.

--
Sep 25