home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4724 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!decwrl!netcomsv!xyzoom!rob
  3. From: rob@xyzoom.info.com (Rob Lingelbach)
  4. Subject: tcsh problem
  5. Message-ID: <1992Nov16.065620.21654@xyzoom.info.com>
  6. Organization: Altruistic Intentions, Hollywood CA
  7. Date: Mon, 16 Nov 1992 06:56:20 GMT
  8. Lines: 34
  9.  
  10. Running version 6.01 of tcsh, I have a strange terminal backspace-key
  11. situation that I wonder if anyone else has observed.  (OS is ISC v3.0,
  12. pretty much plain-vanilla sysv for 386)
  13.  
  14. If I turn on the correct feature, with a "set correct=all", and then
  15. use the "e" option of the correction prompt to edit a mistyped
  16. command, using a backspace within an interactive script only works
  17. once--a second backspace immediately following the first backspace is
  18. something else (I'm guessing maybe ^D, or eof).  The output of "stty
  19. -a" before and after using the "e" correction option is the same.
  20. Example follows:
  21.  
  22. rob@xyzoom 22:41 ~ 63> Pnewt
  23. CORRECT>Pnews (y|n|e)?edit
  24. Pnews (I backspaced over the t and typed s, so far so good)
  25. Newsgroup(s): la.tset (now I want to backspace over t, e, and s, to
  26.     correct my bad typing, and as soon as I do the second
  27.     backspace, over the e, I get dumped to the next command of the
  28.     script, the Distribution: prompt).
  29.  
  30. Backspace works fine at the tcsh prompt--it's only when dealing with
  31. scripts like Pnews that I get the weird behavior.  And I can fix the
  32. behavior each time by doing an "unset correct" (but I like this
  33. feature very much [it's still experimental?]).  If I don't enter the
  34. "e"dit mode of the correction mechanism, and just type "y" to the
  35. tcsh-supplied correction, backspace works fine in scripts.
  36.  
  37. Thanks in advance for any helpful hints...
  38. --Rob
  39.  
  40. -- 
  41. Rob Lingelbach KB6CUN | 2660 Hollyridge Dr LA CA 90068 213 464 6266 (voice) 
  42. rob@xyzoom.info.com   | "I care not much for a man's religion whose dog or 
  43. robl@netcom.com       |  cat are not the better for it."  --Abraham Lincoln
  44.