Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-11986

newinstall.sh broken on OSX due to usage of `declare -g`

    Details

      Description

      newinstall.sh is failing on OSX due to a recently routine cleanup that removed the usage of eval. It seems that declare -g is a bash 4.x-ism.

      bash: line 708: declare: -g: invalid option
      declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
      script returned exit code 2
      

      bash 3.2.57:

      $ help declare
      declare: declare [-afFirtx] [-p] [name[=value] ...]
          Declare variables and/or give them attributes.  If no NAMEs are
          given, then display the values of variables instead.  The -p option
          will display the attributes and values of each NAME.
          
          The flags are:
          
            -a	to make NAMEs arrays (if supported)
            -f	to select from among function names only
            -F	to display function names (and line number and source file name if
          	debugging) without definitions
            -i	to make NAMEs have the `integer' attribute
            -r	to make NAMEs readonly
            -t	to make NAMEs have the `trace' attribute
            -x	to make NAMEs export
          
          Variables with the integer attribute have arithmetic evaluation (see
          `let') done when the variable is assigned to.
          
          When displaying values of variables, -f displays a function's name
          and definition.  The -F option restricts the display to function
          name only.
          
          Using `+' instead of `-' turns off the given attribute instead.  When
          used in a function, makes NAMEs local, as with the `local' command.
      
      

        Attachments

          Issue Links

            Activity

            Hide
            jhoblitt Joshua Hoblitt added a comment -

            Merged.

            Show
            jhoblitt Joshua Hoblitt added a comment - Merged.

              People

              • Assignee:
                jhoblitt Joshua Hoblitt
                Reporter:
                jhoblitt Joshua Hoblitt
                Watchers:
                Joshua Hoblitt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel