]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: fix function name of enosys completion
authorKoichi Murase <myoga.murase@gmail.com>
Tue, 1 Jul 2025 13:39:23 +0000 (22:39 +0900)
committerKoichi Murase <myoga.murase@gmail.com>
Tue, 1 Jul 2025 13:48:41 +0000 (22:48 +0900)
The function "_enosys_module" referenced by the completion setting on
the last line of "bash-completion/enosys" is not defined in the
current master.  As reported in Ref. [1], this causes the following
error on an attempt at argument completion for the "enosys" command:

  bash: _enosys_module: command not found

[1] https://www.reddit.com/r/Fedora/comments/1llmu0w/comment/n00y98k/

Also, the function "_waitpid_module" defined in
"bash-completion/enosys" overwrites another completion function of the
same name defined in "bash-completion/waitpid".  This patch renames
the function in "bash-completion/enosys" to the correct one,
"_enosys_module".

bash-completion/enosys

index d89bc8f0995084b9a77dbad3f42ef5a56d0be8cf..f5c4ae9df498c59b3eca3a3a62bc30e63c443bf1 100644 (file)
@@ -1,4 +1,4 @@
-_waitpid_module()
+_enosys_module()
 {
        local cur prev OPTS
        COMPREPLY=()