diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-09 23:28:11 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-09 23:28:11 +0200 |
commit | 3b8ef29ef34d7ea009faca1a35023b454ab2dce1 (patch) | |
tree | 0924cf066806adb3aa7d7b9dcd7f35303292f897 /completions/man | |
parent | 1d48f79b9c6a9b9e9044741d300ded461d765135 (diff) | |
download | bash-completion-3b8ef29ef34d7ea009faca1a35023b454ab2dce1.tar.gz |
Cleanups: Use [[ instead of [.
Diffstat (limited to 'completions/man')
-rw-r--r-- | completions/man | 4 |
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/ }" |