From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22557 invoked from network); 13 May 2002 17:33:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 May 2002 17:33:37 -0000 Received: (qmail 6967 invoked by alias); 13 May 2002 17:33:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17142 Received: (qmail 6953 invoked from network); 13 May 2002 17:33:27 -0000 From: "Bart Schaefer" Message-Id: <1020513173320.ZM12360@candle.brasslantern.com> Date: Mon, 13 May 2002 17:33:20 +0000 In-Reply-To: <15583.34740.981994.404489@wischnow.berkom.de> Comments: In reply to Sven Wischnowsky "Re: completion in quotes - " vs ' - no suffix added" (May 13, 11:30am) References: <15576.54689.459113.686818@wischnow.berkom.de> <6134254DE87BD411908B00A0C99B044F02E89A73@mowd019a.mow.siemens.ru> <15577.7296.682622.411849@wischnow.berkom.de> <1020508153855.ZM7837@candle.brasslantern.com> <15583.34740.981994.404489@wischnow.berkom.de> <6134254DE87BD411908B00A0C99B044F02E89A8C@mowd019a.mow.siemens.ru> In-Reply-To: <6134254DE87BD411908B00A0C99B044F02E89A8C@mowd019a.mow.siemens.ru> Comments: In reply to Borsenkow Andrej "RE: completion in quotes - " vs ' - no suffix added" (May 13, 2:14pm) X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: completion in quotes - " vs ' - no suffix added MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 13, 11:30am, Sven Wischnowsky wrote: } } (Also sorry for being so bone-headed. Ahem.) S'ok. } Because a quoting a single quote inserts more single quotes. This } wasn't even handled correctly (in the case that there was one quoted } single quote in the string) by get_comp_string(). } } The patch below should fix it. At least it does for the pretty } complicated cases I tried. On May 13, 2:14pm, Borsenkow Andrej wrote: } } I do not see any difference with this patch. As before, listing } pathnames with spaces in single quotes correctly adds slash to } directories and in double quotes adds nothing. I see slashes getting added to directories in double quotes: schaefer<505> ls a\ b a\ d/ don't stop/ rmthat/ schaefer<506> ls "a schaefer<506> ls "a\\ Completing files a\\ d/ a\\ b And then going on: schaefer<506> ls "a\\ schaefer<506> ls "a\\ d/ schaefer<506> ls "a\\ b" One oddity is that typing the closing quote after `ls "a\\ d/' does not auto-remove the slash, but I don't think that's strictly a bug. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net