home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5218 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.4 KB

  1. From: kevinl@tisdec.tis.tandy.com
  2. Date: 31 Dec 92 07:59 CST
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: File completion in Ksh.
  5. Message-ID: <28300012@tisdec.tis.tandy.com>
  6. Path: sparky!uunet!cs.utexas.edu!convex!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
  7. Nf-ID: #R:news.mentorg.com:201:tisdec.tis.tandy.com:28300012:000:955
  8. Nf-From: tisdec.tis.tandy.com!kevinl    Dec 31 07:59:00 1992
  9. References: <201@news.mentorg.com>
  10. Lines: 39
  11.  
  12.  
  13.     I'm not sure if this is what you're looking for, but this is
  14. the only method of file completion in Korn that I know:
  15.  
  16. $ ls
  17. Makefile
  18. back
  19. ls.out
  20. main.cxx
  21. main.o
  22. string
  23. string.cxx
  24. string.hxx
  25. string.o
  26.  
  27. $ mai
  28.  
  29. After you type in mai, press ESC and then the '*' key.  It will expand
  30. the command line as follows:
  31.  
  32. $ main.cxx main.o
  33.  
  34. If you just want to see what files _would_ complete to match what
  35. you've typed, press the '=' key and you will get something like this:
  36.  
  37. $ mai
  38. 1) main.cxx
  39. 2) main.o
  40. $ mai
  41.  
  42. Just as an aside, the ESC puts you into a VI editing mode, so most
  43. of the normal VI keys work, like 'k'(up) is your previous command,
  44. 'j'(down) is the next command, '/{pattern}' will search for a command,
  45. etc.  The man page tells most of it's abilities, but if you have any
  46. more questions, e-mail me and I'll be glad to help.
  47. --
  48. Kevin K. Lewis             | My opinions may be unreasonable
  49. kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration
  50.  
  51.