Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19763

gitfunctions.sh should be Zsh compliant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 8.3
    • Component/s: Dev Tools

      Description

      The gitfa Shell function fails under Zsh.

      In Zsh, the result of parameter substitution is not split into words (it's a feature, not a bug).
      Solutions to have the common sh behavior are:

      • setopt shwordsplit
      • setopt rcexpandparam
      • use an array
      • use an alias

      Also, the for loop does not split on line returns (\n), only on spaces.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: