Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!mcsun!hp4nl!rulway.LeidenUniv.nl!rulcvx.LeidenUniv.nl!crissl From: crissl@rulcvx.LeidenUniv.nl (Stefan Linnemann) Newsgroups: comp.unix.shell Subject: Re: set filec in the KSH? Summary: Korn shell filename completion. Message-ID: <1991Apr15.161444.8437@rulway.LeidenUniv.nl> Date: 15 Apr 91 16:14:44 GMT References: <1991Apr14.175109.10183@magnus.acs.ohio-state.edu> Sender: root@rulway.LeidenUniv.nl (System PRIVILEGED Account) Organization: Leiden University, the Netherlands. Lines: 77 Nntp-Posting-Host: rulcvx.leidenuniv.nl From the manual page ksh(1): --- start of man page selections --- [ ... ] Emacs Editing Mode [ ... ] The notation for escape sequences is M- followed by a char- acter. For example, M-f (pronounced Meta f) is entered by depressing ESC (ascii 033) followed by `f'. (M-F would be the notation for ESC followed by `SHIFT' (capital) `F'.) [ ... ] M-* Attempt file name generation on the current word. An asterisk is appended if the word doesn't match any file or contain any special pattern charac- ters. M-ESC File name completion. Replaces the current word with the longest common prefix of all filenames matching the current word with an asterisk appended. If the match is unique, a / is appended if the file is a directory and a space is appended if the file is not a directory. M-= List files matching current word pattern if an asterisk were appended. [ ... ] Vi Editing Mode [ ... ] Text Modification Edit Commands These commands will modify the line. [ ... ] * Causes an * to be appended to the current word and file name generation attempted. If no match is found, it rings the bell. Other- wise, the word is replaced by the matching pattern and input mode is entered. \ Filename completion. Replaces the current word with the longest common prefix of all filenames matching the current word with an asterisk appended. If the match is unique, a / is appended if the file is a directory and a space is appended if the file is not a directory. [ ... ] Other Edit Commands Miscellaneous commands. [ ... ] = List the file names that match the current word if an asterisk were appended it. --- end of man page selections --- All the vi inputline editing commands mentioned work only in command mode, of course. Another case of RTFM, so I guess you don't have them, poor sod. ;-) Good luck! Greetings from below sealevel, Stefan. Stefan M. Linnemann, System programmer; Leiden University, the Netherlands. crissl@rulcvx.LeidenUniv.nl