bug-bash
[Top][All Lists]
Advanced

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

TAB completion bug


From: Ole Tange
Subject: TAB completion bug
Date: Tue, 5 Dec 2023 23:46:51 +0000

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2
uname output: Linux aspire 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 
UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

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

Description:
    Tested on git (2023-12-06).

    For the (admitedly weirdly named) dirs below TAB completion does not work 
correctly.

Repeat-By:
    #!/bin/bash

    # TAB works
    # $ ls -l ta<TAB><TAB><TAB><TAB><TAB><TAB>
    # <works>
    # Tab completes but is escaped wrongly:
    # $ ls -l ta<TAB><TAB><TAB><TAB><TAB><TAB><TAB>
    # <completes wrongly>

    mkdir -p 'tab/
    `/tmp/trip`>/tmp/tripwire;
    '"'"'@<?[]|~\/tmp'

    # These give the same
    # $ ls -l tw<TAB><TAB><TAB><TAB>
    # $ ls -l tw<TAB><TAB><TAB><TAB><TAB>
    # But the last should include tmp

    mkdir -p 'two/
    >/tmp/tripwire;
    '"'"'@<?[]|~\/tmp'




reply via email to

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