Control: retitle -1 bash-completion suggest timezone completion for any command 
after TZ
Control: tags -1 + confirmed,upstream

On Thu, Jan 03 2019, 積丹尼 Dan Jacobson wrote:
> Package: bash-completion
> Version: 1:2.8-5
> 
> Why does
> $ grep TZ a<TAB>
> not expand?
> $ grep TZa a<TAB>
> Does.

That's a side effect of the fix for Red Hat bug #994646 [1].

> Same problem with ls, whatever command.

As reported in the bug [1], completing `env TZ ', `declare TZ ',
`typeset TZ ', or `export TZ=' correctly suggests timezone options.
However, bash-completion also suggests timezone options for other
commands, such as ls and grep, and that looks wrong.  I'll try to
produce a fix that doesn't spoil it for export, env, etc.

> No there is no file called TZ.
> 
> No other environment variable names don't trigger the problem.

Yes, TZ is handled specially by bash-completion.


Thanks for the report,
Gabriel

[1] https://bugzilla.redhat.com/show_bug.cgi?id=994646

Reply via email to