Permalink
Browse files

avoid infinite recursion in command not found hook

  • Loading branch information...
falconindy committed Dec 29, 2012
1 parent 5c28156 commit 5572e0b3c093023f2604ebb135938c898f260c97
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit 5572e0b

Please sign in to comment.