Re: [rfc] Completion tests failing

Eli Zaretskii
2001-09-27T12:07:00Z

> Date: Thu, 27 Sep 2001 13:00:26 -0400
> From: Daniel Jacobowitz <drow@mvista.com>
>
> On Thu, Sep 27, 2001 at 05:37:10PM +0200, Eli Zaretskii wrote:
> > > Date: Thu, 27 Sep 2001 10:34:01 -0400
> > > From: Daniel Jacobowitz <drow@mvista.com>
> > >
> > > I wanted to get a name that I knew would complete unambiguously, so I
> > > tried using '"break.', which ought to complete to '"break.c"'. It
> > > completes instead to '"break.c ' - trailing space, no trailing quote.
> >
> > Try this twice, one after the other, and you will see that only the
> > first time fails. The second and all the successive times will
> > complete to `"break.c"'.
>
> What do you mean by twice? I can't get `"break.' to complete to `"break.c"'
> at all, no matter what I try.

Sorry, I didn't realize the importance of starting with "break.,
including the period. Anything else correctly completes to "break.c".

The reason for this is that Readline only passes our completion
function the part after the period, so we never see the "break part.