blob: a8128f05b3ec298cac1f6f1da6fc71b0b8d40600 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
commit 888f217aba727063885356099ae4a726c60934d0
Author: Jeffrey Bastian <jbastian@redhat.com>
Date: Wed May 5 17:55:17 2010 -0500
Don't print the history if in verbose mode
Author: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
Date: Wed Jan 26 15:28:17 2011 +0100
- Add if statement to fix error message on exit
"verbose: Undefined variable."
diff --git a/sh.c b/sh.c
index 178b972..0caa51b 100644
--- a/sh.c
+++ b/sh.c
@@ -1378,6 +1378,9 @@ main(argc, argv)
xprintf("exit\n");
}
}
+ /* Don't print the history file to the terminal */
+ if (adrof1(STRverbose, &shvhed) != 0)
+ unsetv(STRverbose);
record();
exitstat();
return (0);
|