Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

autocomplete - What does the [?D] symbol mean in this context?

On the documentation page for the tcsh complete command, it lists the symbols [?D] and [?C] several times. I haven't found anything from Google. Context suggests that they could be single or double tab, but I can find no reference to support this and wanted to make sure it wasn't something more esoteric.

Any ideas what these are meant to represent?

    > complete ftp 'p/1/$hostnames/'
    > set hostnames = (rtfm.mit.edu tesla.ee.cornell.edu)
    > ftp [?D]
    rtfm.mit.edu tesla.ee.cornell.edu
    > ftp [?C]
    > set hostnames = (rtfm.mit.edu tesla.ee.cornell.edu uunet.uu.net)
    > ftp [?D]
    rtfm.mit.edu tesla.ee.cornell.edu uunet.uu.net
question from:https://stackoverflow.com/questions/65916039/what-does-the-d-symbol-mean-in-this-context

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It's a somewhat unusual way to write ^D, which is Control+D.

This is the "traditional" mapping to trigger completion, although Tab is more commonly used these days. Back in the day not all keyboards had a dedicated Tab key (the ADM-3A, on which csh was originally developed, didn't) and you would insert tabs with ^I, there is no real reason to prefer that over ^D in absence of a dedicated key.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...