Bug 267099 - shells/zsh: Fix a completion function bug of 'cut' command with rare case
Summary: shells/zsh: Fix a completion function bug of 'cut' command with rare case
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Baptiste Daroussin
URL: https://github.com/zsh-users/zsh/pull/96
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-15 18:34 UTC by Norikatsu Shigemura
Modified: 2022-11-17 20:18 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bapt)


Attachments
patch (1.23 KB, patch)
2022-10-15 18:34 UTC, Norikatsu Shigemura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norikatsu Shigemura 2022-10-15 18:34:08 UTC
Created attachment 237352 [details]
patch

I and Umemoto-san(ume@FreeBSD.org) found a storage behavior
of 'cut' command's completion with https://github.com/wookayin/fzf-fasd.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$ cut -[TAB]
_arguments:comparguments:327: invalid argument: cut
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

So I researched this behavior, I found a conflict of variable 'args'.
I think a style violation of '_cut' file.  So I rewrite to safe description.
Comment 1 Norikatsu Shigemura 2022-11-16 08:19:22 UTC
Now working on zsh-users/zsh.
SEE ALSO: https://github.com/zsh-users/zsh/pull/96
Comment 2 Oliver Kiddle 2022-11-17 20:18:43 UTC
I have applied a somewhat different patch to zsh - e4aeb3b911
I don't use fzf-fasd so haven't explicitly tested against that but I suspect the only problem was the lack of `local args` in `_cut`