Procházet zdrojové kódy

Fixed aegument passing error with git() bash wrapper

With calls like `git --version`, "--version" was passed to grep as its
own parameter.  This also affected git tab completion features.
Alois Mahdal před 11 roky
rodič
revize
a7d0b5122e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      dotfiles/bash/global-before.bashrc

+ 1
- 1
dotfiles/bash/global-before.bashrc Zobrazit soubor

@@ -9,7 +9,7 @@
9 9
 ### '''' ###
10 10
 
11 11
 git() {
12
-    if grep -Fwqs "$1" "$GIT_DISABLED_COMMANDS"; then
12
+    if grep -Fwqse "$1" "$GIT_DISABLED_COMMANDS"; then
13 13
         echo "You don't want this." >&2
14 14
         return 1
15 15
     else