summaryrefslogtreecommitdiff
path: root/sh.err.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2019-10-21 18:08:57 +0000
committerBrooks Davis <brooks@FreeBSD.org>2019-10-21 18:08:57 +0000
commit6dbf9acb98fdd3c3ca6d260fb38b23b78b33a47a (patch)
tree0dbe1b24d85739d9ba1914260a1429db8bbc5957 /sh.err.c
parent320f2946781af5deaf568d19136cf96fe2c436dd (diff)
Notes
Diffstat (limited to 'sh.err.c')
-rw-r--r--sh.err.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh.err.c b/sh.err.c
index c676f5e35327f..010b23c7d99b5 100644
--- a/sh.err.c
+++ b/sh.err.c
@@ -43,6 +43,7 @@
#endif
char *seterr = NULL; /* Holds last error if there was one */
+extern int enterhist;
#define ERR_FLAGS 0xf0000000
#define ERR_NAME 0x10000000
@@ -630,6 +631,8 @@ stderror(unsigned int id, ...)
*/
flush();/*FIXRESET*/
haderr = 1; /* Now to diagnostic output */
+ if (enterhist)
+ xprintf("Can't load history: ");/*FIXRESET*/
if (flags & ERR_NAME)
xprintf("%s: ", bname);/*FIXRESET*/
if ((flags & ERR_OLD)) {