summaryrefslogtreecommitdiff
path: root/completions/man
diff options
context:
space:
mode:
Diffstat (limited to 'completions/man')
-rw-r--r--completions/man4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/man b/completions/man
index 5c134d33..a9de57c4 100644
--- a/completions/man
+++ b/completions/man
@@ -63,7 +63,7 @@ _man()
manpath=$MANPATH
fi
- if [ -z "$manpath" ]; then
+ if [[ -z $manpath ]]; then
COMPREPLY=( $( compgen -c -- "$cur" ) )
return 0
fi
@@ -72,7 +72,7 @@ _man()
[[ "$prev" == $mansect ]] && sect=$prev || sect='*'
manpath=$manpath:
- if [ -n "$cur" ]; then
+ if [[ -n $cur ]]; then
manpath="${manpath//://*man$sect/$cur* } ${manpath//://*cat$sect/$cur* }"
else
manpath="${manpath//://*man$sect/ } ${manpath//://*cat$sect/ }"