[pacman-dev] [PATCH] bash-completion: support file redirection completions

Eli Schwartz eschwartz at archlinux.org
Tue Mar 19 04:50:37 UTC 2019


On 3/19/19 12:05 AM, Allan McRae wrote:
> On 8/3/19 2:22 pm, Eli Schwartz wrote:
>> The current completions don't properly handle redirection operators, and
>> attempt to complete command completions rather than completing filenames
>> to redirect to.
>>
>> bash-completion provides both _get_comp_words_by_ref and a higher-level
>> wrapper _init_completion, but the latter provides handling of redirection
>> operators, so switch to using that.
>>
>> Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
>> ---
> 
> Can you provide an example here so I can test?

`pacman -Ql > `

Press tab and it will try to complete package names for the -Ql, but
what you actually want to do is complete a filename that is intended to
store a list of packages/files.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20190319/95bde3d3/attachment.sig>


More information about the pacman-dev mailing list