From 9a49b2c9fb74fccd56a1ee8ee9a3a6db29afcb56 Mon Sep 17 00:00:00 2001 From: nulltrek Date: Thu, 22 Aug 2013 22:57:30 +0200 Subject: Fix "command not found" handler behaviour. --- share/functions/__fish_config_interactive.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/functions/__fish_config_interactive.fish') diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index d7961861..4f873d92 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -222,12 +222,12 @@ function __fish_config_interactive -d "Initializations that should be performed # First check in /usr/lib, this is where modern Ubuntus place this command if test -f /usr/lib/command-not-found function fish_command_not_found_handler --on-event fish_command_not_found - /usr/lib/command-not-found $argv + /usr/lib/command-not-found -- $argv end # Ubuntu Feisty places this command in the regular path instead else if type -p command-not-found > /dev/null 2> /dev/null function fish_command_not_found_handler --on-event fish_command_not_found - command-not-found $argv + command-not-found -- $argv end # Use standard fish command not found handler otherwise else -- cgit v1.2.3