From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6444 invoked by alias); 1 Jan 2017 03:50:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40255 Received: (qmail 20550 invoked from network); 1 Jan 2017 03:50:51 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.25):SA:0(-0.7/5.0):. Processed in 0.720822 secs); 01 Jan 2017 03:50:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=WDL1db8a4W60rCcRbp+k7UwO4Ho=; b=w21a2YjoqlBCnypNNrOmu 6d15ycWz5bM1bKcFMoxrr5yLKcN3g97UenXk4X4ogvpkGt4ou+DAwN7vary/axUV IubCHT0qVQEqxetq9h2vV5Q0MVTWA8xQIwhFIS1K7wWfNh4s/SD9Hok0HZXMQm42 Gs3ATeXAQNFbQomwsV9A+Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=WDL1db8a4W60rCcRbp+k7UwO4Ho=; b=kGLXfcQOS8k/zHuIShdj 7BPg7N1kpIS7dOAD5jJ6AadX/w+0RIZrTt/V4PxMk2MtHXg2WWDdTkK1oz5CJYR3 T2yEpaHctRvKSfyHjIZcb9+laLCZaPZxXnJnSVUuWrf7TNv4vvYttxRLeino8oHC P2mOT72BmPyxpOYgIWOKQ2k= X-ME-Sender: X-Sasl-enc: CNiYE+US/TClVZIbjEFTLhhx72nzfOq4Dfce8sxWOa0b 1483242647 Date: Sun, 1 Jan 2017 03:47:39 +0000 From: Daniel Shahaf To: Mikael Magnusson Cc: zsh workers Subject: Re: Weird tab complete problem with long directory names with a dash and unicode characters Message-ID: <20170101034739.GA1977@fujitsu.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 | Date: Tue Jan 19 17:38:59 2016 +0000 | | 37693: turn Dash into '-' in glob qualifiers | * commit ad16356e1923ec1b4daf97b27b10a835cfe73ba7 | Author: Peter Stephenson | Date: Tue Jan 19 17:24:12 2016 +0000 | | 37689: ! and ^ need to be tokenised in character sets | * commit 8eb9070d6785f423dd9bdbbb0513aa47c8a08d62 Author: Peter Stephenson 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