tadded also explicit stdout redirection to command -v - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a0db66b18e4b9aa994d079762f9d4d1bacdd7eee
 (DIR) parent 9f39d671a09b3cc36d4f8e91872c84192304ff3f
 (HTM) Author: Jaromil <jaromil@dyne.org>
       Date:   Sun, 16 Nov 2014 13:11:42 +0100
       
       added also explicit stdout redirection to command -v
       
       Diffstat:
         M tomb                                |      26 +++++++++++++-------------
       
       1 file changed, 13 insertions(+), 13 deletions(-)
       ---
 (DIR) diff --git a/tomb b/tomb
       t@@ -612,7 +612,7 @@ option_value() {
        # Messaging function with pretty coloring
        function _msg() {
            local msg="$2"
       -    command -v gettext 2>/dev/null && msg="$(gettext -s "$2")"
       +    command -v gettext 1>/dev/null 2>/dev/null && msg="$(gettext -s "$2")"
            for i in $(seq 3 ${#});
            do
                msg=${(S)msg//::$(($i - 2))*::/$*[$i]}
       t@@ -733,7 +733,7 @@ _ensure_dependencies() {
        
            # Check for required programs
            for req in cryptsetup pinentry sudo gpg; do
       -        command -v $req 2>/dev/null || {
       +        command -v $req 1>/dev/null 2>/dev/null || {
                    _failure "Missing required dependency ::1 command::.  Please install it." $req }
            done
        
       t@@ -741,24 +741,24 @@ _ensure_dependencies() {
            path+=(/sbin /usr/sbin) # zsh magic
        
            # Which dd command to use
       -    command -v dcfldd 2>/dev/null && DD=(dcfldd statusinterval=1)
       +    command -v dcfldd 1>/dev/null 2>/dev/null && DD=(dcfldd statusinterval=1)
        
            # Which wipe command to use
       -    command -v wipe 2>/dev/null && WIPE=(wipe -f -s)
       +    command -v wipe 1>/dev/null 2>/dev/null && WIPE=(wipe -f -s)
        
            # Check for filesystem creation programs
       -    command -v mkfs.ext4 2>/dev/null && MKFS=(mkfs.ext4 -q -F -j -L)
       +    command -v mkfs.ext4 1>/dev/null 2>/dev/null && MKFS=(mkfs.ext4 -q -F -j -L)
        
            # Check for steghide
       -    command -v steghide 2>/dev/null || STEGHIDE=0
       +    command -v steghide 1>/dev/null 2>/dev/null || STEGHIDE=0
            # Check for resize
       -    command -v e2fsck resize2fs 2>/dev/null || RESIZER=0
       +    command -v e2fsck resize2fs 1>/dev/null 2>/dev/null || RESIZER=0
            # Check for KDF auxiliary tools
       -    command -v tomb-kdb-pbkdf2 2>/dev/null || KDF=0
       +    command -v tomb-kdb-pbkdf2 1>/dev/null 2>/dev/null || KDF=0
            # Check for Swish-E file content indexer
       -    command -v swish-e 2>/dev/null || SWISH=0
       +    command -v swish-e 1>/dev/null 2>/dev/null || SWISH=0
            # Check for QREncode for paper backups of keys
       -    command -v qrencode 2>/dev/null || QRENCODE=0
       +    command -v qrencode 1>/dev/null 2>/dev/null || QRENCODE=0
        }
        
        # }}} - Commandline interaction
       t@@ -2011,7 +2011,7 @@ BEGIN { main="" }
        # index files in all tombs for search
        # $1 is optional, to specify a tomb
        index_tombs() {
       -    { command -v updatedb 2>/dev/null } || {
       +    { command -v updatedb 1>/dev/null 2>/dev/null } || {
                _failure "Cannot index tombs on this system: updatedb (mlocate) not installed." }
        
            updatedbver=`updatedb --version | grep '^updatedb'`
       t@@ -2033,7 +2033,7 @@ index_tombs() {
            _success "Creating and updating search indexes."
        
            # start the LibreOffice document converter if installed
       -    { command -v unoconv 2>/dev/null } && {
       +    { command -v unoconv 1>/dev/null 2>/dev/null } && {
                unoconv -l 2>/dev/null &
                _verbose "unoconv listener launched."
                sleep 1 }
       t@@ -2131,7 +2131,7 @@ EOF
            done
        }
        search_tombs() {
       -    { command -v locate 2>/dev/null } || {
       +    { command -v locate 1>/dev/null 2>/dev/null } || {
                _failure "Cannot index tombs on this system: updatedb (mlocate) not installed." }
        
            updatedbver=`updatedb --version | grep '^updatedb'`