diff -u --recursive bash-2.04-orig/bashline.c bash-2.04-hacked/bashline.c --- bash-2.04-orig/bashline.c Fri Dec 31 20:03:51 1999 +++ bash-2.04-hacked/bashline.c Mon Feb 12 17:37:57 2001 @@ -53,6 +53,8 @@ # include "pcomplete.h" #endif +int stat_all_in_path = 1; + #if defined (BRACE_COMPLETION) extern void bash_brace_completion (); #endif /* BRACE_COMPLETION */ @@ -1172,7 +1174,9 @@ /* If we have found a match, and it is an executable file or a directory name, return it. */ - if (match && (executable_file (val) || is_directory (val))) + if (match && (!stat_all_in_path + || executable_file (val) + || is_directory (val))) { free (val); val = ""; /* So it won't be NULL. */ diff -u --recursive bash-2.04-orig/builtins/shopt.def bash-2.04-hacked/builtins/shopt.def --- bash-2.04-orig/builtins/shopt.def Tue Sep 21 16:20:01 1999 +++ bash-2.04-hacked/builtins/shopt.def Mon Feb 12 17:34:29 2001 @@ -65,6 +65,7 @@ extern int glob_ignore_case; extern int hup_on_exit; extern int xpg_echo; +extern int stat_all_in_path; #if defined (EXTENDED_GLOB) extern int extended_glob; @@ -147,6 +148,7 @@ { "shift_verbose", &print_shift_error, (Function *)NULL }, { "sourcepath", &source_uses_path, (Function *)NULL }, { "xpg_echo", &xpg_echo, (Function *)NULL }, + { "stat_all_in_path", &stat_all_in_path, (Function *)NULL }, { (char *)0, (int *)0, (Function *)NULL } };