[bug #68094] in bash a forward slash is added at end of commands in tab completion if there is a directory with the same name

tmp0x <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?68094>

                 Summary: in bash a forward slash is added at end of commands
in tab completion if there is a directory with the same name
                   Group: The GNU Bourne-Again SHell
               Submitter: tmp0x
               Submitted: Thu 26 Feb 2026 05:10:08 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 26 Feb 2026 05:10:08 PM UTC By: tmp0x <tmp0x>
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2
uname output: Linux debian 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian
6.1.94-1 (2024-06-21) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.3
Patch Level: 0
Release Status: release

Description:
suppose we are currently in a certain dir that contains a directory called
"vim". Assuming that vim editor is installed and there other commands that can
be executed that start with the letter 'v', then typing 'v' and pressing tab
for bash completion displays a forward slash at the end of the suggestion as
follows "vim/".



Repeat-By:
Assuming the assumptions mentioned in the Description are satisfied, then to
reproduce:
    1. make sure you don't have "set mark-directories off" set anywhere
    2. mkdir vim
    3. type 'v'
    4. press tab till completion suggestions appear










    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68094>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaaB+fQAKCRCqLAuaBUf3
TtFyAP9+iB6SBlZBJVoO+EPQDva1D72dR0jzqo7fThDo61yNHAEAl+Gv0VZVQuEW
K9QRlgk8DCcUHcttABJAqiQ94BHzTAA=
=0dPh
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.