[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-112-g5fcaad8
Ville Skyttä
ville.skytta at iki.fi
Mon Dec 26 19:49:24 UTC 2011
The following commit has been merged in the master branch:
commit 5fcaad875665e9378e661ee398358908a4ef99f8
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Dec 26 21:47:51 2011 +0200
cleanups: Drop some no longer needed stderr redirections.
diff --git a/bash_completion b/bash_completion
index ee966ea..da0267b 100644
--- a/bash_completion
+++ b/bash_completion
@@ -590,7 +590,7 @@ _filedir()
-n "$1" && "$1" != -d && ${#toks[@]} -lt 1 ]] && \
toks+=( $( compgen -f -- $quoted ) )
- [[ ${#toks[@]} -ne 0 ]] && compopt -o filenames 2>/dev/null
+ [[ ${#toks[@]} -ne 0 ]] && compopt -o filenames
COMPREPLY+=( "${toks[@]}" )
} # _filedir()
@@ -923,7 +923,7 @@ _tilde()
# Try generate ~username completions
COMPREPLY=( $( compgen -P '~' -u "${1#\~}" ) )
result=${#COMPREPLY[@]}
- [[ $result -gt 0 ]] && compopt -o filenames 2>/dev/null
+ [[ $result -gt 0 ]] && compopt -o filenames
fi
return $result
}
--
bash-completion
More information about the Bash-completion-commits
mailing list