diff options
author | Sven Wegener <swegener@gentoo.org> | 2006-10-13 15:00:13 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2006-10-13 15:00:13 +0000 |
commit | 579c9b48dcb3638d87d032e5861afe620fa5c6f3 (patch) | |
tree | ac9df9afc664c14bfc493c6295f6f7c3a1eaef2a /app-crypt/shash/files | |
parent | Added missing pkgconfig dep, bug #150278. (diff) | |
download | historical-579c9b48dcb3638d87d032e5861afe620fa5c6f3.tar.gz historical-579c9b48dcb3638d87d032e5861afe620fa5c6f3.tar.bz2 historical-579c9b48dcb3638d87d032e5861afe620fa5c6f3.zip |
Touchup bash completion support.
Package-Manager: portage-2.1.2_pre2-r9
Diffstat (limited to 'app-crypt/shash/files')
-rw-r--r-- | app-crypt/shash/files/digest-shash-0.2.6-r1 | 2 | ||||
-rw-r--r-- | app-crypt/shash/files/shash.bash-completion | 17 |
2 files changed, 10 insertions, 9 deletions
diff --git a/app-crypt/shash/files/digest-shash-0.2.6-r1 b/app-crypt/shash/files/digest-shash-0.2.6-r1 index b1befd302513..6abaf5d33ba6 100644 --- a/app-crypt/shash/files/digest-shash-0.2.6-r1 +++ b/app-crypt/shash/files/digest-shash-0.2.6-r1 @@ -1 +1,3 @@ MD5 8f38ec66b989fa38275f5170e15241b4 shash-0.2.6.tar.gz 105641 +RMD160 9b17e84ca8a6deb312e26f037f4f15056f6838e9 shash-0.2.6.tar.gz 105641 +SHA256 6abf13eb1c3b4b6ef0f07e5425d10ed2abaad1d08c327647feb3506e76ced9dc shash-0.2.6.tar.gz 105641 diff --git a/app-crypt/shash/files/shash.bash-completion b/app-crypt/shash/files/shash.bash-completion index 9f2212a002be..d57701fc08f7 100644 --- a/app-crypt/shash/files/shash.bash-completion +++ b/app-crypt/shash/files/shash.bash-completion @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/files/shash.bash-completion,v 1.1 2004/09/27 00:49:54 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/files/shash.bash-completion,v 1.2 2006/10/13 15:00:13 swegener Exp $ # # shash(1) completion. @@ -12,17 +12,17 @@ _shash() { cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} - case "$prev" in + case "${prev}" in -c|--config) _filedir return 0 ;; -o|--keymode) COMPREPLY=( $( compgen -W "$( shash --listkeygen | tail -n +2 )" \ - -- $cur ) ) + -- ${cur} ) ) return ;; -a|--algorithm) COMPREPLY=( $( compgen -W "$( shash --list )" \ - -- $cur ) ) + -- ${cur} ) ) return ;; *) ;; @@ -33,9 +33,8 @@ _shash() { --verbose --quiet --nosalt --time --hmac --doublecheck \ --check --binary --text --keymode --config --algorithm \ --list --key --listkeygen --help --version --license' \ - -- $cur ) ) + -- ${cur} ) ) _filedir return 0 -} - -[ -n "${have:-}" ] && complete -F _shash $filenames shash +} && +complete -F _shash ${filenames} shash |