From 4033d87fddff62cfd615899991955867659ade01 Mon Sep 17 00:00:00 2001
From: Ingmar Vanhassel <ingmar@exherbo.org>
Date: Thu, 19 Nov 2009 02:58:42 +0100
Subject: [PATCH] bash-completion: Bash has & should use [[ == ]]

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
---
 notmuch-completion.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/notmuch-completion.bash b/notmuch-completion.bash
index 42557173..b4335fdf 100644
--- a/notmuch-completion.bash
+++ b/notmuch-completion.bash
@@ -52,11 +52,11 @@ _notmuch()
     COMPREPLY=()
     prev=${COMP_WORDS[COMP_CWORD-1]}
 
-    if [ "$COMP_CWORD" = "1" ]; then
+    if [[ "$COMP_CWORD" == "1" ]]; then
 	COMPREPLY=( $(compgen -W "${commands}" -- ${current}) )
     fi
 
-    if [ $prev = "help" ] && [ "$COMP_CWORD" = "2" ]; then
+    if [[ $prev = "help" && "$COMP_CWORD" == "2" ]]; then
 	COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) )
     fi
 }
-- 
2.45.2