Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7706

thisroot.sh not working properly for zsh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.04.00
    • Fix Version/s: 6.06/00, 6.04/04
    • Component/s: Core Libraries
    • Labels:
      None
    • Environment:

      zsh shell, Ubuntu 14.04 64-bit

      Description

      The script thisroot.sh is not working in conjunction with the bash-related zsh linux shell. When sourcing thisroot.sh from within the root/bin/ folder, the following error appears:

      ERROR: must cd where/root/is before calling . bin/thisroot.sh for this version of bash!

      "thisroot.sh" uses the BASH_ARGV env-variable, which is not supported by all bash-related shells. "thisroot.sh" should take care of managing the folder structure, also if sourced from within root/bin/

      Please see the attached patch for a suggestion for a fix.

      PS: thisroot.csh is handling the source from within the bin/-folder properly.

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              hauth Thomas Hauth (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: