You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Zsh completions of the coreutils binary created by running cargo run completion coreutils zsh results in an error:
coreutils _coreutils:1418: invalid subscript
_coreutils:1419: bad pattern: _coreutils__[_commands
_coreutils:23: bad pattern: [
_coreutils:23: bad pattern: [
Description
Creating completions using cargo run completion coreutils zsh will create completions for the uu_test create and thus both test and [ binaries as given here:
I installed the multicall binary from source and created the completions as given above, placing them in $FPATH. I am using Zsh 5.9.4 (with Oh My Zsh) on an Arch-based distro.
The text was updated successfully, but these errors were encountered:
We can't remove the [ alias there unfortunately, because we still need to support the alias, but we maybe we can skip generating completions for it? Alternatively, the [ should be an optional feature, since it is a built-in in zsh, so people can decide (based on their shell) whether they want it or not.
Issue
Using the Zsh completions of the
coreutils
binary created by runningcargo run completion coreutils zsh
results in an error:Description
Creating completions using
cargo run completion coreutils zsh
will create completions for theuu_test
create and thus bothtest
and[
binaries as given here:coreutils/build.rs
Lines 60 to 63 in 97d30bd
This results in a completions file containing the following:
Each of the snippets above contain invalid opening square brackets, resulting in the shown errors when using the generated completions in Zsh.
Workaround
Removing line 62 in build.rs fixes the issue:
coreutils/build.rs
Line 62 in 97d30bd
Background
I installed the multicall binary from source and created the completions as given above, placing them in
$FPATH
. I am using Zsh 5.9.4 (with Oh My Zsh) on an Arch-based distro.The text was updated successfully, but these errors were encountered: