Re: Troubles with autocompletion of filenames with square brackets
Thanks, now the completion works fine, I’ll send a bug to maintainers. 2015-07-12 4:34 GMT+03:00 Chet Ramey : > On 7/10/15 3:36 AM, deterenkelt.git...@gmail.com wrote: > > > Bash Version: 4.3 > > Patch Level: 39 > > Release Status: release > > > > Description: > > Autocompletion fails for files starting with an opening square > bracket and having closing bracket somewhere in the filename. > > I can't reproduce this using bash-4.3.39 on Mac OS X. Please type > > complete -r > > and try your examples again. If they work, you should file a bug report > with your vendor against the bash-completion package. > > Chet > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, ITS, CWRUc...@case.edu > http://cnswww.cns.cwru.edu/~chet/ >
Troubles with autocompletion of filenames with square brackets
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-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./include -I. -I./include -I./lib -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' -DSTANDARD_UTILS_PATH='/bin:/usr/bin:/sbin:/usr/sbin' -DSYS_BASHRC='/etc/bash/bashrc' -DSYS_BASH_LOGOUT='/etc/bash/bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -march=corei7-avx -O2 -pipe -fomit-frame-pointer --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 uname output: Linux home 3.16.6-geek-i5 #11 SMP PREEMPT Fri Jul 3 19:54:14 MSK 2015 x86_64 Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz GenuineIntel GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 4.3 Patch Level: 39 Release Status: release Description: Autocompletion fails for files starting with an opening square bracket and having closing bracket somewhere in the filename. Repeat-By: $ mkdir temp && cd temp $ mkdir -p one/{\[bad\]\ folder,\[yet\]\ another\ bad\ folder} Now try $ cd one# cd one/\[ â should appear $ mkdir -p \[one\]/{\[bad\]\ folder,\[yet\]\ another\ bad\ folder} Type $ cd [ # cd \[one\]/ â should appear $ cd \[one\]/â further completions do not work $ mkdir -p \[two\]/{\[bad\]\ folder,\[yet\]\ another\ bad\ folder} $ cd [ # cd \[ â should appear $ cd \[t # â doesnât work. $ cd \[tw # â doesnât work. $ cd \[two # â doesnât work. $ cd \[two] # â doesnât work. $ cd \[two\] # â doesnât work. But if you type $ cd [two # cd \[two\]/ â should appear Surprise â this works! However⦠$ cd \[two\]/ # â no further completions work :( Fix: [Description of how to fix the problem. If you don't know a fix for the problem, don't include this section.]