From ec3ef3e95045b807d00b35ab14ab97168959b1c3 Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (V-Teq)" Date: Wed, 26 Jan 2011 15:35:49 +0100 Subject: [PATCH] Fix tcsh-6.14.00-dont-print-history-on-verbose.patch - Add if statement to fix error message on exit "verbose: Undefined variable." --- tcsh-6.14.00-dont-print-history-on-verbose.patch | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tcsh-6.14.00-dont-print-history-on-verbose.patch b/tcsh-6.14.00-dont-print-history-on-verbose.patch index d70cdae..a8128f0 100644 --- a/tcsh-6.14.00-dont-print-history-on-verbose.patch +++ b/tcsh-6.14.00-dont-print-history-on-verbose.patch @@ -4,16 +4,23 @@ Date: Wed May 5 17:55:17 2010 -0500 Don't print the history if in verbose mode +Author: Vojtech Vitek (V-Teq) +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,8 @@ main(argc, argv) +@@ -1378,6 +1378,9 @@ main(argc, argv) xprintf("exit\n"); } } + /* Don't print the history file to the terminal */ -+ unsetv(STRverbose); ++ if (adrof1(STRverbose, &shvhed) != 0) ++ unsetv(STRverbose); record(); exitstat(); return (0);