Browse Source

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 11 years ago
parent
commit
a7d0b5122e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      dotfiles/bash/global-before.bashrc

+ 1
- 1
dotfiles/bash/global-before.bashrc View File

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