On Sun 16 Jan 2005 at 20:04:36 +0100, you wrote:

> On Sun, Jan 16, 2005 at 10:47:22AM -0800, Ian Macdonald wrote:
> > This problem is not in the upstream release. 'cvs annotate' says:
> > 
> > 1.435        (ianmacd  10-Oct-02):      !(python|-?))
> > 
> > This line hasn't changed since October 2002.
> > 
> > Ian
> 
> Uhm, sorry, I didn't pay enough attention there. The patch should go
> the other way. Applying it with 'patch -R' should fix the problem.

Ah, now I get it.

I've fixed this another way, which I think is a little cleaner:

At the top of the function:

  prev=${COMP_WORDS[COMP_CWORD-1]}

becomes:

  prev=${COMP_WORDS[COMP_CWORD-1]##*/}

to strip any leading path component.

Ian
-- 
Ian Macdonald               | If it's worth doing, it's worth doing for
System Administrator        | money. 
[EMAIL PROTECTED]             | 
http://www.caliban.org      | 
                            | 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to