[comp.sys.att] Ksh question.

lenny@quincy.UUCP (Lenny Tropiano) (12/01/87)

In ksh on my AT&T 3B2/310, I typed "<ESC>=" while in VI-mode.  It responded
with a "ls-type" directory with each of the files numbered 1 thru X.  What
good it is?  What does it do?  I don't see it in my manual page.  Can 
someone enlighten me?

						-Lenny
-- 
Lenny Tropiano                      ...seismo!uunet!godfre!quincy!lenny  -or-
American LP Systems, Inc.           ...cmcl2!phri!gor!helm!quincy!lenny  -or-
1777-18 Veterans Memorial Hwy.   	          ...mtune!quincy!lenny  -or
Islandia, New York 11722     +1 516-582-5525 ...ihnp4!icus!quincy!lenny

lvc@tut.UUCP (12/01/87)

In article <73@quincy.UUCP>, lenny@quincy.UUCP (Lenny Tropiano) writes:
> In ksh on my AT&T 3B2/310, I typed "<ESC>=" while in VI-mode.  It responded
> with a "ls-type" directory with each of the files numbered 1 thru X.  What
> good it is?  What does it do?  I don't see it in my manual page.  Can 
> someone enlighten me?
> 						-Lenny

In the "Other Edit Commands" section of the "Vi Editing Mode" section
(on page 23 of my man page):

	=	List the filenames that match the current
		word if an asterisk were appended to it.

If your are typing a command and you forget the exact spelling of a
filename, you can use this to see it without losing what you've typed
so far.  I haven't used this feature of ksh very much myself, but its
nice to have around.
-- 
	Larry Cipriani AT&T Network Systems at
	cbosgd!osu-cis!tut!lvc Ohio State University

twb@hoqax.UUCP (BEATTIE) (12/02/87)

In article <2497@tut.cis.ohio-state.edu>, lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) writes:

Re: <ESC>=

> If you are typing a command and you forget the exact spelling of a
> filename, you can use this to see it without losing what you've typed
> so far.  I haven't used this feature of ksh very much myself, but its
> nice to have around.

In emacs mode you can also use <ESC><ESC> to do filename completion - A
very nice feature that I use all the time.
Too bad vi users don't get that capability.

Tom.

cms@ho7cad.UUCP (12/03/87)

In article <1232@hoqax.UUCP>, twb@hoqax.UUCP (BEATTIE) writes:
> In emacs mode you can also use <ESC><ESC> to do filename completion - A
> very nice feature that I use all the time.
> Too bad vi users don't get that capability.

Filename completion works in vi mode, on the command line something like

$ cat file.*<ESC>*

will complete the filename,  this seems to work with all the vi pattern
matching meta-characters.

						Dean S. Jones
						AT&T BL  HO
						(AT&T Gateways)!ho7cad!cms
						(AT&T Gateways)!ho7cad!dean

lwv@n8emr.UUCP (Larry W. Virden) (12/05/87)

I use vi mode a lot.  I found a quirk when trying the vi mode version of 
this:

imagine a directory which includes the file "sorted.news".
I typed :

ls s<esc>.

and I got:

lsorted.news

Any ideas out there?

Also, I am wondering if anyone knows of any patches for ksh, especially for
Ultrix.  I see several strange occurances - like a tracked alias which
disappears occasionally, an invalid identifier which only appears when
I log in from a modem port - not a directly wired port, am frustrated by
not being able to do string replacement on numbers only when accessing the
history list, and a few other such things.  I am really interested in any
and all patches that you know about.


-- 
Larry W. Virden	 75046,606 (CIS)
674 Falls Place, Reynoldsburg, OH 43068 (614) 864-8817
cbosgd!n8emr!lwv (UUCP) 	cbosgd!n8emr!lwv@ucbvax.Berkeley.EDU (BITNET)
We haven't inherited the world from our parents, but borrowed it from our children.

ekrell@hector.UUCP (Eduardo Krell) (12/07/87)

In article <367@n8emr.UUCP> lwv@n8emr.UUCP (Larry W. Virden) writes:

>imagine a directory which includes the file "sorted.news".
>I typed :
>
>ls s<esc>.
>
>and I got:
>
>lsorted.news
>
>Any ideas out there?

You should type <ESC>* (that is, escape followed by a star) to get
filename completion.

So, for instance,

ls s<ESC>*

will expand to

ls sorted.news
    
    Eduardo Krell                   AT&T Bell Laboratories, Murray Hill

    {ihnp4,seismo,ucbvax}!ulysses!ekrell