Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 39093 erases variant with slashes (was: Re: Pattern matching with _files vs command line)
- X-seq: zsh-workers 39278
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: 39093 erases variant with slashes (was: Re: Pattern matching with _files vs command line)
- Date: Sun, 11 Sep 2016 09:18:11 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=xeGCATcASSwWIaPFhI+bMDOfVC3k/fMwzq6nGN7WD8E=; b=zu7qfdNhcp0cCXBJFzkHYfxY2h00rJ0Kv3ITFKegVGDMjXKKSLZ9G5t21kUMJzaDlz P1CoDEQbvfg711BMStPS14E9DxwBcdfBohmFvSNIizNuStdG9D89n16JlYo9UZXnR4qT NkOA+pNI7OINZKyHnwFnjmi/qgVWhInzJx5I01ujXj+aH/J4P8l+UWSpJTnHYI+t/Yre 3PUfbyj1LvWHZiUBPbJgcZeMo4jfBsH+NzxOiBTsQG8MTHkGrbjMs8GkV/AF2BrCy/SM noHKznr9jPujGXUNSNVPNtK/f4rwbg9ic2QMmyiktMOPJVtjRfRz+s4f8/lkfGdQc0uf oABw==
- In-reply-to: <20160911094221.GA18467@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <75f69404-5bc4-20e5-caf7-3d0a6dd87b59@redhat.com> <160909194033.ZM19936@torch.brasslantern.com> <20160911094221.GA18467@fujitsu.shahaf.local2>
On Sep 11, 9:42am, Daniel Shahaf wrote:
} Subject: 39093 erases variant with slashes (was: Re: Pattern matching with
}
} Bart Schaefer wrote on Fri, Sep 09, 2016 at 19:40:33 -0700:
} > ADDITIONAL ASIDE to -workers: The weird side-effects that result
} > here from having the trailing "/" in the completion results seem
} > to be tangentially related to the thread from 39093 where the whole
} > current word gets erased. When all the completions end in "/", it
} > is the first unambigous character, so
} >
} > % foo <TAB>
} > % foo /
} >
}
} Could you share the reproducer for this please?
Run this anywhere with more than one subdirectory not all of which have
a common prefix; e.g., the zsh source tree:
torch% compinit -D
torch% _f () { _files -g '*(/M)' }
torch% compdef _f f
torch% zstyle \* file-patterns %p:globbed-files
torch% f <TAB>
torch% f /
If the zstyle is omitted, the groups globbed-files and directories contain
identical sets of matches but are for some reason not de-duped against one
another (probably because none of them matches an actual file name) so you
get a listing instead of the unambiguous-insertion behavior.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author