[tcsh] Fix tcsh-6.14.00-dont-print-history-on-verbose.patch
Vojtěch Vítek
vvitek at fedoraproject.org
Wed Jan 26 14:48:59 UTC 2011
commit ec3ef3e95045b807d00b35ab14ab97168959b1c3
Author: Vojtech Vitek (V-Teq) <vvitek at redhat.com>
Date: Wed Jan 26 15:35:49 2011 +0100
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 files 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) <vvitek at 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,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);
More information about the scm-commits
mailing list