Neat csh feature
Guangliang He
ghe at nucthy.physics.orst.edu
Thu Aug 3 01:59:59 AEST 1989
In article <3574 at uokmax.UUCP> jkmedcal at uokmax.UUCP (Jeff K Medcalf) writes:
=In article <62079 at linus.UUCP> rtidd at mitre.arpa writes:
=>If you set the environment variable filec (as in set filec), that
=>allows csh to do file completion, kind of like emacs does. If you're
=>typing in a file name, just type enough characters to make it unique
=>then hit <ESC> and the shell will finish it for you. For example,
=>--------------------------------------
=>Randy Tidd MITRE-McLean CCEL Lab
=
=This is both true and elegant. However, cat v* will do the same thing.
=(the example was a directory
=a b c d very_long_file_name
=on which cat v<ESC> is the same as cat very_long_file_name)
=
=I don't think that there is much of a difference in time to execute, either.
=The shell may expand with some wierdness under some circumstances, though.
=
=
=fodder
The trick is real neat but only on BSD systems. SYS V doesn't have file name
completion no matter you set filec or not. It's kind of consistensy because
SYS V doesn't allow very_long_file_name, maximam length of file name is 14
charecters.
-----------------------------------------------------------------------
|
USMAIL: Guangliang He | INTERNET: ghe at PHYSICS.ORST.EDU
Department of Physics | ghe at jacobs.CS.ORST.EDU
Oregon State University | BITNET: hegl at orstvm.bitnet
Corvallis, OR 97331 | PHONE: (503) 737-4631
|
-----------------------------------------------------------------------
More information about the Comp.unix.questions
mailing list