From eecefea7f394a2af2ea25e36a44c73b9deb299fe Mon Sep 17 00:00:00 2001 From: millert <> Date: Sat, 30 Dec 2000 02:47:28 +0000 Subject: [PATCH] Ok, I'll say it again: "fix ^C in termtype prompt for real this time" The bottom line is that the 'set noglob' has to be in effect *before* the eval, but if the user hits ^C we don't want their shell to still have noglob set. So, we now catch the ^C and continue on like the tset completed OK. Egad. --- src/etc/root/dot.login | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/etc/root/dot.login b/src/etc/root/dot.login index 12f30e2d..70c76277 100644 --- a/src/etc/root/dot.login +++ b/src/etc/root/dot.login @@ -1,6 +1,11 @@ set tterm='?'$TERM -eval `set noglob ; tset -s -Q $tterm ; unset noglob` +set noglob +onintr finish +eval `tset -s -Q $tterm` +finish: +unset noglob unset tterm +onintr if ( `logname` == `whoami` ) then echo "Don't login as root, use su"