On Fri, Jun 30, 2017 at 09:50:12PM -0700, Ilya Kaliman wrote:
The tab-autocomplete does not seem to work for some strings in ksh.
How to reproduce:

mkdir "a a" "(bbb)" "(c c)"
cd a\ a && mkdir abc{1,2,3} && cd ..
cd \(bbb\) && mkdir abc{1,2,3} && cd ..
cd \(c\ c\) && mkdir abc{1,2,3} && cd ..

type "cd a\ a/" hit tab -> auto-completes to abc, offers abc1 abc2 abc3
type "cd \(bbb\)/" hit tab -> auto-completes to abc, offers abc1 abc2 abc3
type "cd \(c\ c\)/" hit tab -> does not autocomplete; expected - same
as previous.

        $ mkdir "(c c)"/abc{1,2,3}
        $ cd \(c\ c\)/<Tab>
          cd \(c\ c\)/abc<Tab>
          abc1/  abc2/  abc3/

Works just fine here.

Reply via email to