bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`complete -f` does not work at all.


From: Frederick Abell
Subject: `complete -f` does not work at all.
Date: Fri, 6 Dec 2024 05:12:35 +0000

From: fkabell3@hotmail.com
To: bug-bash@gnu.org
Subject: `complete -f` does not work at all.

Configuration Information [Automatically generated, do not change]:  ok, I did 
not change anything.
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt 
-fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security   
      -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer -g 
-ffile-prefix-map=/build/bash/src=/usr/src/debug/bash -flto=auto 
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' 
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc' 
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS
uname output: Linux arch.localdomain 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 
15 Nov 2024 15:35:07 +0000 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.2
Patch Level: 37
Release Status: release

Description:
      `compete -f`/`complete -A file` do not work at all, whilst `complete 
-d`/`complete -A directory` work fine.
      Someone from 2008 appears to have the same issue:
      
https://www.linuxquestions.org/questions/linux-software-2/bash-completion-complete-f-not-working-635918/

      I also tested this on a recent version of Debian stable, with the same 
results.
      Thank you for your time.

Repeat-By:
      $ bash --norc                       # irrelevant
      $ ls /etc/inputrc $HOME/.inputrc    # irrelevant
      ls: cannot access '/etc/inputrc': No such file or directory
      ls: cannot access '/home/fkabell/.inputrc': No such file or directory
      $ pacman -Q readline
      readline 8.2.013-1
      $ mkdir a_dir b_dir
      $ touch c_file d_file
      $ ls -F
      a_dir/  b_dir/  c_file  d_file
      $ complete -d cd  # works fine
      $ cd <tab>
      a_dir/ b_dir/
      $ complete -f cat # does not work
      $ cat <tab>
      a_dir/  b_dir/  c_file  d_file

      # I was expecting to only see c_file and d_file.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]