File: bash_command_not_found

package info (click to toggle)
command-not-found 0.2.38-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 1,248 kB
  • ctags: 199
  • sloc: python: 824; makefile: 42; sh: 18
file content (14 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# (c) Zygmunt Krynicki 2005,
# Licensed under GPL, see COPYING for the whole text
#
# This script will look-up command in the database and suggest
# installation of packages available from the repository

command_not_found_handle() {
  if  [ -x /usr/share/command-not-found/command-not-found ]; then
     /usr/share/command-not-found/command-not-found -- "$1" 
     return $?
  else
     return 127
  fi	    
}