From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26428 invoked from network); 10 Jun 1999 16:32:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jun 1999 16:32:24 -0000 Received: (qmail 26671 invoked by alias); 10 Jun 1999 16:32:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6583 Received: (qmail 26660 invoked from network); 10 Jun 1999 16:31:58 -0000 From: "Bart Schaefer" Message-Id: <990610163140.ZM1627@candle.brasslantern.com> Date: Thu, 10 Jun 1999 16:31:39 +0000 In-Reply-To: <001e01beb348$debda3e0$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: More intellegent suffix removing?" (Jun 10, 5:55pm) References: <001e01beb348$debda3e0$21c9ca95@mow.siemens.ru> <199906101402.QAA24565@beta.informatik.hu-berlin.de> In-Reply-To: <199906101402.QAA24565@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "RE: More intellegent suffix removing?" (Jun 10, 4:02pm) X-Mailer: Z-Mail (5.0.0 30July97) To: Subject: Re: More intellegent suffix removing? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 10, 5:55pm, Andrej Borsenkow wrote: } Subject: RE: More intellegent suffix removing? } } > The patch would be the thing below (are there any other characters } > where this would be the right thing?). It looks a bit ugly when this } > happens after typing a `<' or `>', though. } } Hmm ... as I found recently, at least `<' can quite legitimately be part of } word ( globbing). On Jun 10, 4:02pm, Sven Wischnowsky wrote: } Subject: RE: More intellegent suffix removing? } } But only if there is also a `>' and the stuff them forms a valid } number range (and, of course, you must have the right options set). Yes ... so what? You can't determine that at the time a suffix is to be autoremoved. } I wasn't very happy with the space-removal on redirection operators } anyway, though. But to make this right, we would need to leave a space } if that was added and to replace a slash (if one was added) with a } space. There is no way to do this easily for now. I don't want zsh to replace a slash if one was added. What if what I intend is to complete a directory and then glob files in that directory whose names begin with a digit? I think Andrej's point -- and it's my point, if not his -- is that '<' should be left out of the list of characters that do suffix autoremoval. (And therefore probably '>' should be too ... and come to think of it, even '|' can be part of a glob pattern.) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com