diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-07-29 20:42:17 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-07-29 20:42:17 -0700 |
commit | 45b687cc08e0a67747d09013ce0ad5e5d04abb1f (patch) | |
tree | c3574c20e2026df40814a3c4c4bbc90abe7eae2a /error.c | |
parent | 41862ea5d8b28c4a5a6cae18c8ab351aec5b160f (diff) | |
download | vyatta-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 'error.c')
-rw-r--r-- | error.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -246,6 +246,24 @@ internal_error (format, va_alist) va_end (args); } +#if defined (PREFER_STDARG) +invalid_cmd (const char *format, ...) +#else +invalid_cmd (format, va_alist) + const char *format; + va_dcl +#endif +{ + va_list args; + + SH_VA_START (args, format); + + vfprintf (stderr, format, args); + fprintf (stderr, "\n"); + + va_end (args); +} + void #if defined (PREFER_STDARG) internal_warning (const char *format, ...) |