[Top][All Lists]

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

Tab completion misbehaves with newlines

From: Rickard Norlander
Subject: Tab completion misbehaves with newlines
Date: Wed, 15 Jul 2015 16:28:13 +0200

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
uname output: Linux monsterpox 3.19.0-21-generic #21-Ubuntu SMP Sun Jun 14 18:31:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 30
Release Status: release

    If a file is created which has a newline in its filename, tab completion does not work correctly. The part before, and the part after the newline behave as separate entries for the purpose of completion.

    First, run

    mkdir folder;cd folder;echo $'#include<stdio.h>\nint main(){fopen("Hello\\nHenrik","w");}'>a.c;gcc a.c;./a.out

    Now type

    cat H

    press tab. Result:

    cat He

    press tab twice. Two alternatives shown:

    Hello   Henrik


reply via email to

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