Avoids letting the shell evaluate the ! as something else (e.g. if !
is an alias).

Signed-off-by: Dave Reisner <[email protected]>
---
 contrib/bash_completion |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/bash_completion b/contrib/bash_completion
index 1ec2cd5..486870f 100644
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -75,7 +75,7 @@ _pacman() {
 
   if [[ $? != 0 ]]; then
     _arch_ptr2comp core
-  elif ! [[ $prev =~ ^-\w*[Vbhr] ||
+  elif [[ ! $prev =~ ^-\w*[Vbhr] ||
     $prev = --@(cachedir|config|dbpath|help|logfile|root|version) ]]
   then
     [[ $cur = -* ]] && _arch_ptr2comp ${o#* } common ||
-- 
1.7.2


Reply via email to