From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21593 invoked by alias); 18 Jan 2014 00:53:46 -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: 32276 Received: (qmail 28171 invoked from network); 18 Jan 2014 00:53:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_URIBL_SEM, T_URIBL_SEM_RED autolearn=ham version=3.3.2 Date: Sat, 18 Jan 2014 01:53:31 +0100 From: Axel Beckert To: zsh-workers@zsh.org Subject: dir/* expansion doesn't work with directories with apostrophe in the name Message-ID: <20140118005330.GA27889@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Linux 2.6.32-5-xen-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.2.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.20 (2009-06-14) Hi, this is a forward of https://bugs.launchpad.net/bugs/687461 -- not a segfault, but easy to reproduce: --->8--- When the directory contains a single quote (apostrophe) in its name, pressing the tab key to expand dir/* into a list of files no longer works. What happens instead is that the tab key doesn't do anything while cursor is inside the dir/* word. This worked as expected in previous versions of zsh. In zsh 4.3.10 (specifically 4.3.10-14ubuntu1, Ubuntu maverick) it works for directories without apostrophes in the name. I discovered it while trying to choose mp3s to queue in a music player, with the mp3s residing in a directory with apostrophe in the name. Here is a recipe to repeat the bug: $ zsh -f mulj% mkdir "a'b" mulj% touch "a'b"/{1,2,3} mulj% ls a\'b/* # press TAB with cursor immediately after the *, nothing happens # pressing enter correctly executes the (expanded) command: a'b/1 a'b/2 a'b/3 mulj% mv a\'b ab mulj% ls ab/* # now pressing TAB with cursor immediately after the * correctly # expands ab/* to ab/1 ab/2 ab/3 mulj% ls ab/1 ab/2 ab/3 ---8<--- I can reproduce this in zsh 5.0.5 as currently in Debian Testing/Unstable. Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)