Skip to content

Commit

Permalink
avoid infinite recursion in command not found hook
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Dec 29, 2012
1 parent 5c28156 commit 5572e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extra/command-not-found.bash
@@ -1,5 +1,6 @@
command_not_found_handle () {
local pkgs cmd=$1
local FUNCNEST=10

mapfile -t pkgs < <(pkgfile -bv -- "$cmd" 2>/dev/null)
if (( ${#pkgs[*]} )); then
Expand Down

0 comments on commit 5572e0b

Please sign in to comment.