diff options
Diffstat (limited to 'builtins/command.def')
-rw-r--r-- | builtins/command.def | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/builtins/command.def b/builtins/command.def index dcbbec14..dbc1e9a1 100644 --- a/builtins/command.def +++ b/builtins/command.def @@ -1,7 +1,7 @@ This file is command.def, from which is created command.c. It implements the builtin "command" in Bash. -Copyright (C) 1987-2002 Free Software Foundation, Inc. +Copyright (C) 1987-2004 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -78,7 +78,7 @@ command_builtin (list) use_standard_path = 1; break; case 'V': - verbose = CDESC_SHORTDESC; /* look in common.h for constants */ + verbose = CDESC_SHORTDESC|CDESC_ABSPATH; /* look in common.h for constants */ break; case 'v': verbose = CDESC_REUSABLE; /* ditto */ @@ -101,7 +101,7 @@ command_builtin (list) { found = describe_command (list->word->word, verbose); - if (found == 0) + if (found == 0 && verbose != CDESC_REUSABLE) sh_notfound (list->word->word); any_found += found; @@ -131,7 +131,7 @@ command_builtin (list) add_unwind_protect ((Function *)restore_path, old_path); standard_path = get_standard_path (); - bind_variable ("PATH", standard_path ? standard_path : ""); + bind_variable ("PATH", standard_path ? standard_path : "", 0); FREE (standard_path); } @@ -170,7 +170,7 @@ restore_path (var) { if (var) { - bind_variable ("PATH", var); + bind_variable ("PATH", var, 0); free (var); } else |