Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!rutgers!orstcs!nucthy!ghe From: ghe@nucthy.physics.orst.edu (Guangliang He) Newsgroups: comp.unix.questions Subject: Re: Neat csh feature Keywords: Pulled from comp.unix.wizards Message-ID: <11931@orstcs.CS.ORST.EDU> Date: 2 Aug 89 15:59:59 GMT References: <62079@linus.UUCP> <3574@uokmax.UUCP> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: ghe@nucthy.PHYSICS.ORST.EDU (Guangliang He) Distribution: na Organization: Dept. of Physics, Oregon State University Lines: 34 In article <3574@uokmax.UUCP> jkmedcal@uokmax.UUCP (Jeff K Medcalf) writes: =In article <62079@linus.UUCP> rtidd@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 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 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@PHYSICS.ORST.EDU Department of Physics | ghe@jacobs.CS.ORST.EDU Oregon State University | BITNET: hegl@orstvm.bitnet Corvallis, OR 97331 | PHONE: (503) 737-4631 | -----------------------------------------------------------------------