瀏覽代碼

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 年之前
父節點
當前提交
a7d0b5122e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      dotfiles/bash/global-before.bashrc

+ 1
- 1
dotfiles/bash/global-before.bashrc 查看文件

@@ -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