Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion



On Wed, Jan 7, 2015 at 4:28 PM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Wed, 7 Jan 2015 16:01:09 +0100
> Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>> On 2014-12-11 11:34:20 -0800, Ray Andrews wrote:
>> > Anyway, knowing that the star replaces the colons cracks it open.
>>
>> This is a bit old, but... When can an asterisk replace a colon?
>
> Colons aren't special to pattern matching at all.
>
>> If an asterisk can match anything, there may be an ambiguity on
>> which field some given word will match.
>
> Yes, they are ambiguous.  The examples probably could do with fixing.
>
> With some of the more complicated things you can do, this can actually
> be hard to work around, I seem to remember.

Does [^:]# work in this context?

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author