summaryrefslogtreecommitdiff
path: root/execute_cmd.c
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-29 20:42:17 -0700
committerJohn Southworth <john.southworth@vyatta.com>2011-07-29 20:42:17 -0700
commit45b687cc08e0a67747d09013ce0ad5e5d04abb1f (patch)
treec3574c20e2026df40814a3c4c4bbc90abe7eae2a /execute_cmd.c
parent41862ea5d8b28c4a5a6cae18c8ab351aec5b160f (diff)
downloadvyatta-bash-45b687cc08e0a67747d09013ce0ad5e5d04abb1f.tar.gz
vyatta-bash-45b687cc08e0a67747d09013ce0ad5e5d04abb1f.zip
Bugfix 2823: change output of invalid commands so that they will integrate into our system seamlessly
Diffstat (limited to 'execute_cmd.c')
-rw-r--r--execute_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/execute_cmd.c b/execute_cmd.c
index e65a03f..df4094b 100644
--- a/execute_cmd.c
+++ b/execute_cmd.c
@@ -4571,7 +4571,7 @@ execute_disk_command (words, redirects, command_line, pipe_in, pipe_out,
hookf = find_function (NOTFOUND_HOOK);
if (hookf == 0)
{
- internal_error (_("%s: command not found"), pathname);
+ invalid_cmd (_("\n Invalid command: [%s]\n"), pathname);
exit (EX_NOTFOUND); /* Posix.2 says the exit status is 127 */
}