ULTRIX 3.0 - /usr/new/csh question

Paul Hite paul at prcrs.UUCP
Thu Feb 2 05:08:33 AEST 1989


In article <6295 at boulder.Colorado.EDU>, rhysling at tramp.Colorado.EDU (Michael Rhysling) writes:
> 
> In the unsupported software that DEC includes with ULTRIX is a csh
> which is a "modified version of the command completion, filename
> recognition csh with new command line edit capability."  
> Does anyone have any idea what they're talking about?

To see this stuff in action, get an empty directory and do a "mkdir testcsh" 
and a  "touch testcsh/name1 testcsh/name2.extrastuff" to get some test files.

Now type "ls t" and press Escape (do not hit return).  You will see:
prompt> ls testcsh
with the cursor right after the h.  So the escape caused csh to look for
files that match "t*".  Since there was only the one directory, it
automatically matched it and completed the file name.  The "estcsh" was
added to the command line by typing Escape.  You could backspace at this
point if you want.  But instead, type "/n" and press escape again.  This
time see:
prompt> ls testcsh/name
with the cursor after the e.  Also you will hear a beep.  The only files in
testcsh/ that start with an n also have "name" as their first 4 chars.  So
csh completed that.  The beep tells you that more than one file exists with
the prefix "name".  To see your choices type ^D.  You will see:
prompt> ls testcsh/name
name1        name2.extrastuff

prompt> ls testcsh/name

With the cursor after the e.  At this point you can type 1 or "2Escape" to
finish the name.

Escape and ^D are the only two characters treated specially.  Once you
get used to this feature, you won't want to lose it.  This also works on
commands.  Type "whESCAPE" and you see all commands starting with wh.
^D as the first char on a line will log you out, but a blank ^D will show
you all commands.

Hope this helps.

Paul Hite   PRC Realty Systems  McLean,Va   uunet!prcrs!paul    (703) 556-2243
                      DOS is a four letter word!



More information about the Comp.unix.questions mailing list