summaryrefslogtreecommitdiffstats
path: root/tcsh-6.17.00-dont-print-history-on-verbose.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tcsh-6.17.00-dont-print-history-on-verbose.patch')
-rw-r--r--tcsh-6.17.00-dont-print-history-on-verbose.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/tcsh-6.17.00-dont-print-history-on-verbose.patch b/tcsh-6.17.00-dont-print-history-on-verbose.patch
new file mode 100644
index 0000000..8e9b42a
--- /dev/null
+++ b/tcsh-6.17.00-dont-print-history-on-verbose.patch
@@ -0,0 +1,23 @@
+diff -u -p -r3.40 -r3.41
+--- tcsh-6.17.00/sh.hist.c 1 Mar 2007 17:14:51 -0000 3.40
++++ tcsh-6.17.00/sh.hist.c 6 May 2010 14:16:24 -0000 3.41
+@@ -422,8 +422,18 @@ rechist(Char *fname, int ref)
+ oldidfds = didfds;
+ didfds = 0;
+ if ((shist = adrof(STRsavehist)) != NULL && shist->vec != NULL)
+- if (shist->vec[1] && eq(shist->vec[1], STRmerge))
++ if (shist->vec[1] && eq(shist->vec[1], STRmerge)) {
++ /*
++ * Unset verbose while we read the history file. From:
++ * jbastian@redhat.com (Jeffrey Bastian)
++ */
++ Char *verb = varval(STRverbose);
++ if (verb != STRNULL)
++ unsetv(STRverbose);
+ loadhist(fname, 1);
++ if (verb != STRNULL)
++ setv(STRverbose, verb, VAR_READWRITE);
++ }
+ fp = xcreat(short2str(fname), 0600);
+ if (fp == -1) {
+ didfds = oldidfds;