home *** CD-ROM | disk | FTP | other *** search
- From: kevinl@tisdec.tis.tandy.com
- Date: 31 Dec 92 07:59 CST
- Newsgroups: comp.unix.shell
- Subject: Re: File completion in Ksh.
- Message-ID: <28300012@tisdec.tis.tandy.com>
- Path: sparky!uunet!cs.utexas.edu!convex!news.oc.com!utacfd.uta.edu!trsvax!trsvax!tisdec.tis.tandy.com!kevinl
- Nf-ID: #R:news.mentorg.com:201:tisdec.tis.tandy.com:28300012:000:955
- Nf-From: tisdec.tis.tandy.com!kevinl Dec 31 07:59:00 1992
- References: <201@news.mentorg.com>
- Lines: 39
-
-
- I'm not sure if this is what you're looking for, but this is
- the only method of file completion in Korn that I know:
-
- $ ls
- Makefile
- back
- ls.out
- main.cxx
- main.o
- string
- string.cxx
- string.hxx
- string.o
-
- $ mai
-
- After you type in mai, press ESC and then the '*' key. It will expand
- the command line as follows:
-
- $ main.cxx main.o
-
- If you just want to see what files _would_ complete to match what
- you've typed, press the '=' key and you will get something like this:
-
- $ mai
- 1) main.cxx
- 2) main.o
- $ mai
-
- Just as an aside, the ESC puts you into a VI editing mode, so most
- of the normal VI keys work, like 'k'(up) is your previous command,
- 'j'(down) is the next command, '/{pattern}' will search for a command,
- etc. The man page tells most of it's abilities, but if you have any
- more questions, e-mail me and I'll be glad to help.
- --
- Kevin K. Lewis | My opinions may be unreasonable
- kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration
-
-