Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-99

Escape quotes in shell code stored in gitconfig.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cli
    • Labels:
      None

      Description

      skara.gitconfig has some shell code as the value of an alias property:

      ```
              skara = ! sh "$(dirname $(git config include.path | grep 'skara.gitconfig' | sed 's@~@'$HOME'@'))/skara.sh"
      ```

      It doesn't do exactly what it's supposed to, since the property file parser strips the double quotes, but they are present in order to tell the shell not to break up the dirname, even if it contains blanks, such as "$HOME/My Git Projects/skara".

      Simple to fix: Add backslashes.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jrose John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: