home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25351 < prev    next >
Encoding:
Text File  |  1993-01-24  |  3.1 KB  |  80 lines

  1. Newsgroups: comp.os.linux
  2. From: twod@socrates.demon.co.uk (Ian A Parkin)
  3. Path: sparky!uunet!pipex!demon!socrates.demon.co.uk!twod
  4. Subject: [Bug ??] CTL-c in vi
  5. Distribution: world
  6. Organization: Realizing Relentlessly
  7. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  8. Lines: 67
  9. Date: Sun, 24 Jan 1993 23:30:27 +0000
  10. Message-ID: <727918227snz@socrates.demon.co.uk>
  11. Sender: usenet@demon.co.uk
  12.  
  13. Not sure that this should be posted here but ...
  14.  
  15. Whilst in vi I typed CTL-C ( emacs has a few things to answer for ) and
  16. something odd happened :
  17.  
  18. I got the "Press return to continue" message at the bottom of the screen.
  19. It looked as if I had returned to the shell, I was given my usual prompt
  20. but when I tried to do things it went weird. The screen was limited to 
  21. about ten lines ( except when output of commands such as 'ls' exceeded this )
  22. before the cursor 'wrapped around to line 1. The vi 'Input box' was displayed
  23. in the bottom left of the screen - I use showmode. To all intents & purposes
  24. I was in a 'vi shell' of some sort.  Upon trying to log out all the usual 
  25. logoff actions were started - syncing to disk, etc. However I was still in 
  26. the vi shell. It was not until I managed to type :q! that things returned to 
  27. normal. Typing 'exit' had no effect whatsoever. Typing 'stty sane' had no 
  28. effect. Killing the parent process ( pid 47 ) did not free the terminal just 
  29. got the login screen plus the input box !
  30.  
  31. Is this a Berty-bug or life imitating art ?
  32.  
  33. Does this happen on later releases of Linux / Elvis / Bash ?
  34.  
  35. Anyone know a fix ?
  36.  
  37. Config details :-
  38.  
  39. uname -a :- Linux Twoddy 0.98.pl5-41 12/01/92 i386 
  40.     ( The SLS version )
  41.  
  42. vi :- ELVIS 1.6 (27 April 1992)
  43.  
  44. bash :- GNU bash, version 1.12.4
  45.  
  46. stty -a :- 
  47. speed 9600 baud; rows 25; columns 80; line = 0;
  48. intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
  49. eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
  50. lnext = ^V; min = 1; time = 0;
  51. -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
  52. -ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
  53. -iuclc ixany -imaxbel
  54. opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
  55. isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
  56. -echoctl -echoke
  57.  
  58. ps -u $LOGNAME (from another login ) :-
  59.  
  60. USER       PID %CPU %MEM SIZE  RSS TT STAT START   TIME COMMAND
  61. ianp       132  0.0  4.8  297  408 a1 S    22:47   0:00 -bash (bash)
  62. ianp        47  0.0  4.8  299  412 a4 S    22:41   0:01 -bash (bash)
  63. ianp       326 60.0  2.3   64  196 a1 R    23:13   0:00 ps -u
  64. ianp       298  1.2  3.0  153  256 a4 S    23:10   0:02 /usr/bin/vi
  65. ianp       273  1.1  3.0  153  256 a4 S    23:10   0:02 /usr/bin/vi
  66.  
  67. ps -a ( after kill pid 47 - virtual tty shows login prompt & input box ) :-
  68.  
  69.   PID TT STAT  TIME COMMAND
  70.   132 a1 S     0:01 -bash (bash)
  71.    45 a2 S     0:00 /etc/getty 9600 tty2
  72.    46 a3 S     0:00 /etc/getty 9600 tty3
  73.   381 a4 S     0:00 /etc/getty 9600 tty4
  74.   386 a1 R     0:00 ps -a
  75.  
  76. -- 
  77. -------------------------------------------------------------------------------
  78.             It's not real you know
  79. -------------------------------------------------------------------------------
  80.