bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Words on Bash Programmable Auto Completion


From: Matthew Woehlke
Subject: Re: Multiple Words on Bash Programmable Auto Completion
Date: Thu, 02 Oct 2008 11:37:57 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.16) Gecko/20080723 Fedora/2.0.0.16-1.fc9 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0

Chet Ramey wrote:
Description:
    I don't know if this is a bug or not, but it has to do with programmable
auto completion. Whenever the options have multiple words I don't get what I
want.

You can get filename-like quoting by specifying that readline should treat
the matches returned by the completion function as filenames, using the
`-o filenames' option to complete: complete -o filenames -F f lala.

How come you didn't mention '-o nospace' when I was trying to write a completion for directory names from a non-PWD reference point? ;-)

'-o nospace' just made that completion work MUCH better.

--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
This .sig is false





reply via email to

[Prev in Thread] Current Thread [Next in Thread]