projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5da2b7
)
bash-completion: Bash has & should use [[ == ]]
author
Ingmar Vanhassel
<ingmar@exherbo.org>
Thu, 19 Nov 2009 01:58:42 +0000
(
02:58
+0100)
committer
Carl Worth
<cworth@cworth.org>
Thu, 19 Nov 2009 10:31:44 +0000
(11:31 +0100)
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
notmuch-completion.bash
patch
|
blob
|
history
diff --git
a/notmuch-completion.bash
b/notmuch-completion.bash
index 42557173212a13c9359b3f3e64b352b9d8665450..b4335fdf31fc93cc54d62179220352d5020c27b6 100644
(file)
--- 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
}