~ubuntu-branches/ubuntu/oneiric/command-not-found/oneiric

« back to all changes in this revision

Viewing changes to zsh_command_not_found

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Zygmunt Krynicki
  • Date: 2011-08-25 15:15:50 UTC
  • Revision ID: james.westby@ubuntu.com-20110825151550-m6gycva2g7fnn91m
Tags: 0.2.43ubuntu1
[ Zygmunt Krynicki ]
* lp:~zkrynicki/command-not-found/rework-locale-support:
  - improved gettext handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
}
12
12
 
13
13
function cnf_precmd() {
14
 
        (($?)) && [ -n "$cnf_command" ] && [ -x /usr/lib/command-not-found ] && {
 
14
        (($? == 127)) && [ -n "$cnf_command" ] && [ -x /usr/lib/command-not-found ] && {
15
15
                whence -- "$cnf_command" >& /dev/null ||
16
16
                        /usr/bin/python /usr/lib/command-not-found -- "$cnf_command"
17
17
                unset cnf_command