tags 706731 patch
thanks

The 'cnf_precmd' function is the file /etc/zsh_command_not_found uses the
variable "$cnf_command" that might be undefined, hence issuing warnings
when zsh is running with "set -u".

Here is a simple patch:

function cnf_precmd() {
+     set +u
    (($?)) && [ -n "$cnf_command" ] && [ -x
/usr/share/command-not-found/command-not-found ] && {
        whence -- "$cnf_command" >& /dev/null ||
            /usr/bin/python /usr/share/command-not-found/command-not-found
-- "$cnf_command"
        unset cnf_command
    }
}
-- 
 ,''`.
: :' :      Cyril Bouthors
`. `'         Debian.org
  `-

Reply via email to