[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tab Completion Ignores Files with Apostrophes
From: |
Dmitry Denisov |
Subject: |
Tab Completion Ignores Files with Apostrophes |
Date: |
Wed, 17 Oct 2007 14:13:20 -0400 |
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../bash -I../bash/include -I../bash/lib -g -O2
-Wall
uname output: Linux ddcase 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC
2007 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 3.2
Patch Level: 13
Release Status: release
Description:
Example situation:
There are 2 subdirectories with names aa and a'aa. In order to
change the current directory to be a'aa, you type a\' and press tab to
invoke tab completion expecting it to complete the name to a'aa.
However, tab completion changes the directory name to aa/ removing the
apostrophe. Pressing tab again does nothing; typed apostrophe is lost.
If both directory names have common characters following
apostrophe, pressing tab removes apostrophe, and completes the name
of the directory without apostrophes.
Tab completion seems to completely ignore files with
apostrophes.
Repeat-By:
In bash, execute the following commands:
mkdir aa
mkdir a\'aa
Now type
cd a\'
and press tab. Command is changed to
cd aa/
Pressing tab again does nothing; typed apostrophe is lost.
Fix:
Add files with special characters including apostrophes to bash
list of files to be considered for tab completion.
Do not remove special characters if they are typed already;
consider them for search within a list of files.
- Tab Completion Ignores Files with Apostrophes,
Dmitry Denisov <=