From c97cd29d3e2cc1baddd7228dbdcbebf2a9da0b40 Mon Sep 17 00:00:00 2001 From: E <79379754+oech3@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:19:37 +0900 Subject: [PATCH] Append .bash to completions --- .github/workflows/CICD.yml | 6 +++--- GNUmakefile | 4 ++-- README.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 6bea15b67e6..ab21ad51fe0 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -314,7 +314,7 @@ jobs: ! test -f /tmp/usr/local/share/man/man1/whoami.1 # Check that the completion is not present ! test -f /tmp/usr/local/share/zsh/site-functions/_install - ! test -f /tmp/usr/local/share/bash-completion/completions/head + ! test -f /tmp/usr/local/share/bash-completion/completions/head.bash ! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish env: RUST_BACKTRACE: "1" @@ -329,7 +329,7 @@ jobs: test -f /tmp/usr/local/share/man/man1/md5sum.1 # Check that the completion is present test -f /tmp/usr/local/share/zsh/site-functions/_b2sum - test -f /tmp/usr/local/share/bash-completion/completions/head + test -f /tmp/usr/local/share/bash-completion/completions/head.bash test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish env: RUST_BACKTRACE: "1" @@ -344,7 +344,7 @@ jobs: ! test -f /tmp/usr/local/share/man/man1/whoami.1 # Check that the completion is not present ! test -f /tmp/usr/local/share/zsh/site-functions/_install - ! test -f /tmp/usr/local/share/bash-completion/completions/head + ! test -f /tmp/usr/local/share/bash-completion/completions/head.bash ! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish - name: "`make install MULTICALL=n`" shell: bash diff --git a/GNUmakefile b/GNUmakefile index 3ff2f7b12a6..c5eb45c239a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -432,7 +432,7 @@ install-completions: build-uudoc mkdir -p $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d $(foreach prog, $(INSTALLEES) $(HASHSUM_PROGS) , \ $(BUILDDIR)/uudoc completion $(prog) zsh > $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_$(PROG_PREFIX)$(prog) $(newline) \ - $(BUILDDIR)/uudoc completion $(prog) bash > $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/$(PROG_PREFIX)$(prog) $(newline) \ + $(BUILDDIR)/uudoc completion $(prog) bash > $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/$(PROG_PREFIX)$(prog).bash $(newline) \ $(BUILDDIR)/uudoc completion $(prog) fish > $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/$(PROG_PREFIX)$(prog).fish $(newline) \ ) else @@ -512,7 +512,7 @@ endif rm -f $(addprefix $(INSTALLDIR_BIN)/$(PROG_PREFIX),$(PROGS)) rm -f $(INSTALLDIR_BIN)/$(PROG_PREFIX)[ rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_$(PROG_PREFIX),$(PROGS)) - rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/$(PROG_PREFIX),$(PROGS)) + rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/$(PROG_PREFIX),$(PROGS).bash) rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/$(PROG_PREFIX),$(addsuffix .fish,$(PROGS))) rm -f $(addprefix $(DESTDIR)$(DATAROOTDIR)/man/man1/$(PROG_PREFIX),$(addsuffix .1,$(PROGS))) diff --git a/README.md b/README.md index 22d5fb0f1d5..8e0617d34eb 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ So, to install completions for `ls` on `bash` to `/usr/local/share/bash-completion/completions/ls`, run: ```shell -uudoc completion ls bash > /usr/local/share/bash-completion/completions/ls +uudoc completion ls bash > /usr/local/share/bash-completion/completions/ls.bash ``` Completion for prefixed `cp` with `uu-` on `zsh` is generated by