zsh-workers
 help / color / mirror / code / Atom feed
From: Wessel Dankers <wsl@cs.ruu.nl>
To: Geoff Wing <mason@primenet.com.au>
Cc: zsh-workers@math.gatech.edu
Subject: Re: <..> ranges in globbing
Date: Wed, 31 Dec 1997 22:37:52 +0100 (MET)	[thread overview]
Message-ID: <Pine.LNX.3.96.971231222519.780B-100000@telamon.dyn.ml.org> (raw)
In-Reply-To: <slrn6ajnl9.pbb.mason@coral.primenet.com.au>

On 31 Dec 1997, Geoff Wing wrote:

> Heyla,
> % touch 101 111 121
> % ls <10-12>1
> ls: <10-12>1: No such file or directory

> Now, it's obvious why it's failing, since 101, 111 & 121 don't match the
> 10 to 12 range.  My opinion is that it probably shouldn't fail in this case,

Indeed. Any glob experts around?

> but maybe a different operator or option/modifier should be used to get it
> to match. since there may be cases where someone wants to match on, say,
> ``<1-50>foo'' and not get, say, ``100foo'' matching.

<1-50>foo would never match 100foo, even with the behaviour described
above. Even though "<1-50>" could expand to `10', it still leaves an
unexplained `0'.  "<1-50>foo" != "<1-50>0foo", so there is no need for an
extra operator.

--
Wessel Dankers



      parent reply	other threads:[~1997-12-31 21:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-31  5:56 Geoff Wing
1997-12-31  6:17 ` Geoff Wing
1998-01-12 11:13   ` PATCH: zsh 3.x: " Peter Stephenson
1998-01-12 16:16     ` Andrej Borsenkow
1998-01-12 16:59       ` Peter Stephenson
1998-01-12 17:10       ` Andrew Main
1998-01-12 17:50         ` Andrej Borsenkow
1997-12-31 21:37 ` Wessel Dankers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.96.971231222519.780B-100000@telamon.dyn.ml.org \
    --to=wsl@cs.ruu.nl \
    --cc=mason@primenet.com.au \
    --cc=wsldanke@cs.ruu.nl \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).