Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Weird tab complete problem with long directory names with a dash and unicode characters



Mikael Magnusson wrote on Sat, Dec 31, 2016 at 21:44:28 +0100:
> mkdir -p るるるるるるるるるるるるるるるるるるるるるるるるる-/foo
> and then attempt to complete foo from the current location, it doesn't
> work with compinit loaded. If you take off one of the るs it's fine, if
> you take out the - it's fine (though the position of the - doesn't
> seem to matter), if you use a million "a"s instead it's fine, the る
> isn't super special though, it's also broken with a bunch of け or any
> other combination I tried (I originally found it because of a real
> directory name). My guess is this is somehow related to the - / Dash
> stuff Peter did recently, but reverting them randomly also didn't seem
> to have much effect. I'm also puzzled as to why the length of the
> string matters and why 26?

Bisected this down to these three:

* commit c2b6bd51f98a5871acd9fcbeddad67216a07907c
| Author: Peter Stephenson <pws@xxxxxxx>
| Date:   Tue Jan 19 17:38:59 2016 +0000
| 
|     37693: turn Dash into '-' in glob qualifiers
|  
* commit ad16356e1923ec1b4daf97b27b10a835cfe73ba7
| Author: Peter Stephenson <pws@xxxxxxx>
| Date:   Tue Jan 19 17:24:12 2016 +0000
| 
|     37689: ! and ^ need to be tokenised in character sets
|  
* commit 8eb9070d6785f423dd9bdbbb0513aa47c8a08d62
  Author: Peter Stephenson <pws@xxxxxxx>
  Date:   Tue Jan 19 09:55:46 2016 +0000
  
      37678: Now possible to quote "-" in pattern range

c2b6bd51 gives the same symptoms as in HEAD.  The two commits before
that give "compaudit:151: unknown file attribute: -".  The parent of
8eb9070d completes '.../foo' correctly.

These revisions are new in 5.3.

Cheers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author