• Brad King's avatar
    pre-commit: Workaround shell syntax limitations · 0df83855
    Brad King authored
    Commit "Reject leading TABs" added use of shell syntax of the form
      $(case "..." in
         a) ... ;;
    Some shell implementations fail to recognize that the ')' in the case
    label is not the end of the '$(' expression.  Work around the problem
    by moving the case block into a separate function outside the '$()'