summaryrefslogtreecommitdiff
path: root/builtins/command.def
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2005-12-07 14:08:12 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:57 +0000
commit95732b497d12c98613bb3c5db16b61f377501a59 (patch)
tree5e1cdf79eb0407e09dca4c0ec29e11442c7d1d15 /builtins/command.def
parenteb87367179effbe5f430236db8259006d71438b7 (diff)
downloadbash-95732b497d12c98613bb3c5db16b61f377501a59.tar.gz
Imported from ../bash-3.1.tar.gz.
Diffstat (limited to 'builtins/command.def')
-rw-r--r--builtins/command.def10
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