aboutsummaryrefslogtreecommitdiff
path: root/sh.err.c
diff options
context:
space:
mode:
authorMark Peek <mp@FreeBSD.org>2009-07-10 21:47:20 +0000
committerMark Peek <mp@FreeBSD.org>2009-07-10 21:47:20 +0000
commit0019e4ce59d3c558ec308aeb83e80048b72332f6 (patch)
tree17eebca78bf08f0e79096867499da4a83e098c34 /sh.err.c
parentbc49518e16776ae85e579feca2ecc4c0001c64a6 (diff)
downloadsrc-0019e4ce59d3c558ec308aeb83e80048b72332f6.tar.gz
src-0019e4ce59d3c558ec308aeb83e80048b72332f6.zip
Import of tcsh-6.17.00vendor/tcsh/6.17.00
Notes
Notes: svn path=/vendor/tcsh/dist/; revision=195595 svn path=/vendor/tcsh/6.17.00/; revision=195596; tag=vendor/tcsh/6.17.00
Diffstat (limited to 'sh.err.c')
-rw-r--r--sh.err.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/sh.err.c b/sh.err.c
index 4da927ce33ae..279c7b8a9bf8 100644
--- a/sh.err.c
+++ b/sh.err.c
@@ -1,4 +1,4 @@
-/* $Header: /p/tcsh/cvsroot/tcsh/sh.err.c,v 3.48 2006/03/02 18:46:44 christos Exp $ */
+/* $Header: /p/tcsh/cvsroot/tcsh/sh.err.c,v 3.50 2007/09/28 20:25:15 christos Exp $ */
/*
* sh.err.c: Error printing routines.
*/
@@ -34,7 +34,7 @@
#include "sh.h"
#include <assert.h>
-RCSID("$tcsh: sh.err.c,v 3.48 2006/03/02 18:46:44 christos Exp $")
+RCSID("$tcsh: sh.err.c,v 3.50 2007/09/28 20:25:15 christos Exp $")
/*
* C Shell
@@ -202,7 +202,7 @@ errinit(void)
for (i = 0; i < NO_ERRORS; i++)
xfree((char *)(intptr_t)elst[i]);
-# if defined(__FreeBSD__) || defined(hpux)
+# if defined(__FreeBSD__) || defined(hpux) || defined(__MidnightBSD__)
# define NLS_MAXSET 30
for (i = 1; i <= NLS_MAXSET; i++)
CGETS(i, 1, "" );
@@ -593,16 +593,17 @@ stderror(unsigned int id, ...)
if (id >= sizeof(elst) / sizeof(elst[0]))
id = ERR_INVALID;
- /*
- * Must flush before we print as we wish output before the error to go
- * on (some form of) standard output, while output after goes on (some
- * form of) diagnostic output. If didfds then output will go to 1/2
- * else to FSHOUT/FSHDIAG. See flush in sh.print.c.
- */
- flush();/*FIXRESET*/
- haderr = 1; /* Now to diagnostic output */
if (!(flags & ERR_SILENT)) {
+ /*
+ * Must flush before we print as we wish output before the error
+ * to go * on (some form of) standard output, while output after
+ * goes on (some * form of) diagnostic output. If didfds then
+ * output will go to 1/2 * else to FSHOUT/FSHDIAG. See flush in
+ * sh.print.c.
+ */
+ flush();/*FIXRESET*/
+ haderr = 1; /* Now to diagnostic output */
if (flags & ERR_NAME)
xprintf("%s: ", bname);/*FIXRESET*/
if ((flags & ERR_OLD)) {