diff options
Diffstat (limited to 'sh.err.c')
-rw-r--r-- | sh.err.c | 3 |
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)) { |