www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21786] New: install.sh: Add error for trying to install two


          Issue ID: 21786
           Summary: install.sh: Add error for trying to install two
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: installer
          Assignee: nobody puremagic.com
          Reporter: john.michael.hall gmail.com

A command like

~/dlang/install.sh install ldc,dub

installs ldc and a corresponding version of dub. However, install.sh does not
support commands here other than dub. For instance, a call like

~/dlang/install.sh install ldc,dmd

will return errors like

Downloading and unpacking
curl: (22) The requested URL returned error: 404  

Instead, there should be a check that anything after the comma starts with dub
and have an error if it is not. 

Alternately, it could loop through anything comma'ed so that the above command
installs both ldc and dmd.

Mar 31 2021