Browse Source

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.
OPENBSD_2_9
millert 24 years ago
parent
commit
eecefea7f3
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/etc/root/dot.login

+ 6
- 1
src/etc/root/dot.login View File

@ -1,6 +1,11 @@
set tterm='?'$TERM 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 unset tterm
onintr
if ( `logname` == `whoami` ) then if ( `logname` == `whoami` ) then
echo "Don't login as root, use su" echo "Don't login as root, use su"


Loading…
Cancel
Save