bug-bash
[Top][All Lists]
Advanced

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

Oddities when tab-completing filenames containing backticks


From: bash-bugs
Subject: Oddities when tab-completing filenames containing backticks
Date: Wed, 14 Oct 2009 23:03:35 -0600
User-agent: NOCC <http://nocc.sourceforge.net/>

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 atu 2.6.27-14-generic #1 SMP Mon Aug 31 12:58:38 UTC 2009 
x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.0
Patch Level: 39
Release Status: release

Description:
   
   Also affects Bash 4.0.33.
   
   When a filename begins with a backtick ` then tab-completion works
   as expected if you go \`<tab>, however if you try to tab-complete
   the filename inside single quotes, several strange behaviours appear.

Repeat-By:

   1) '`<tab>      This causes all commands available on the system to be
                   listed such as `awk `bash etc., even though it's inside
                   single quotes.

   2) '`text<tab>  This completes the filename, but it does not insert a
                   trailing single quote as tab-completion would usually do.

   3) '`dir<tab>   This completes the directory name and adds the trailing
                   forward slash, but not the trailing single quote.

   4) 'text`<tab>  This completes the filename and closes the single quote
                   as expected.

   5) '`text<tab>' When using tab-completion inside single quotes on a
                   filename beginning with a backtick, then it completes
                   the filename and adds an additional closing single quote,
                   e.g. '`filename.txt''

   6) '`dir<tab>'  When using tab-completion inside single quotes on a
                   directory name beginning with a backtick, then it
                   completes the directory name and adds an additional
                   closing single quote after the directory name and before
                   the forward slash, e.g. '`directory'/'








reply via email to

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