From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4960 invoked from network); 2 Feb 2001 08:21:39 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Feb 2001 08:21:39 -0000 Received: (qmail 14831 invoked by alias); 2 Feb 2001 08:21:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13429 Received: (qmail 14817 invoked from network); 2 Feb 2001 08:21:24 -0000 Date: Fri, 2 Feb 2001 09:21:22 +0100 (MET) Message-Id: <200102020821.JAA13921@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Peter Stephenson's message of Thu, 01 Feb 2001 17:57:19 +0000 Subject: Re: Space-expansion problem in dev-8 Peter Stephenson wrote: > > If a filename contains spaces (or other escapable characters) and you > > expand it via wild-carding, the spaces are not escaped. > > The fix is probably something like the following, but Sven may have better > ideas. This is leaving my cursor at the end of the word for some reason. > Probably _expand was written before ${(q)...} existed. Hm, maybe. I don't remember why we used that instead of (q), I have only a very faint memory of problems with (q) when that quoted more than we wanted but unfortunately I don't remember what that was (and not even in _expand, but in some other completion function, I think). So for now I've just committed Peter's patch and left the old stuff commented out. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de