separate the command language and interactive

Brandon S. Allbery KB8JRR/AA allbery at NCoast.ORG
Sat May 11 11:27:28 AEST 1991


As quoted from <2832 at optima.cs.arizona.edu> by gudeman at cs.arizona.edu (David Gudeman):
+---------------
| ]How about glob completion: expand things like "*" and "f*".
| 
| If the ish writer wants to expand wildcards, the ish can do so.
| 
| ]A more serious problem: the shell isn't the only thing that
| ]wants/needs completion.  gdb, for example, wants to do completion.
| 
| That was one of the considerations that lead to my suggestion in the
| first place.  Write a command line description for gdb just like for
| the clang.
+---------------

And how do you tell ish to complete a variable name for gdb?  This leads
directly into:

+---------------
| ]Teaching the front-end about all this gets ugly.
| 
| All of this is part of the front end, there is no "teaching" about it.
| 
| ]The simplest way to handle completion is to have a communication
| ]channel between the front-end and the current interactive process.
| 
| It might make life a little easier for the ish writer, but it makes
| life harder for the clang writer.  Since completion is an ish feature,
| the clang writer should not have to worry about it.
+---------------

...but if the possible completion values are generated internally to the
clang, there had *better* be a way to tell the ish how to complete them, or
your completion scheme is going to fall apart.

++Brandon
-- 
Me: Brandon S. Allbery			  Ham: KB8JRR/AA  10m,6m,2m,220,440,1.2
Internet: allbery at NCoast.ORG		       (restricted HF at present)
Delphi: ALLBERY				 AMPR: kb8jrr.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery       KB8JRR @ WA8BXN.OH



More information about the Comp.unix.shell mailing list