zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: PATCH: 3.1.5 - (Sven) Case-insensitive globbing
Date: Wed, 4 Nov 1998 10:48:58 -0800	[thread overview]
Message-ID: <981104104858.ZM21585@candle.brasslantern.com> (raw)
In-Reply-To: <9811021707.AA24379@ibmth.df.unipi.it>
In-Reply-To: <199811021806.SAA10170@diamond.tao.co.uk>
In-Reply-To: <199811030812.JAA23176@beta.informatik.hu-berlin.de>
In-Reply-To: <vbn269dkyw.fsf@snake.isode.com>
In-Reply-To: <199811031501.PAA31047@diamond.tao.co.uk>
In-Reply-To: <oeesog0ejgy.fsf@alpha.hut.fi>
In-Reply-To: <199811031854.SAA26578@diamond.tao.co.uk>
In-Reply-To: <199811031914.VAA20835@alpha.hut.fi>
In-Reply-To: <199811031927.TAA31643@diamond.tao.co.uk>
In-Reply-To: <199811031936.VAA13012@alpha.hut.fi>

Skipping a lot of conversation here ...

On Nov 2,  6:07pm, Peter Stephenson wrote:
} Subject: Re: PATCH: 3.1.5 - (Sven) Case-insensitive globbing
}
} "Zefram" wrote:
} > Case insensitivity is
} > a property of pattern matching, not filename generation.  Therefore the
} > syntax to control case sensitivity should be part of the glob pattern

I've decided that I agree with that.

} I've got two possible implentations to propose (I have them both
} working, the differences aren't so great).

I agree with the choice that's been made of which one to use.

On Nov 2,  6:06pm, Zefram wrote:
} Subject: Re: PATCH: 3.1.5 - (Sven) Case-insensitive globbing
}
} If there were just two senses to the flag, I'd argue for #i and #I (#I
} being the opposite of #i).  In this case perhaps #i, #l and #I could be
} used.  I'd prefer a better mnemonic for the one-way case insensitivity,
} though.

I agree about the mnemonic for one-way, but I think what PWS did is fine
(based on the description at the top of the patch message, I haven't had
a chance to actually try it yet).

On Nov 3,  9:12am, Sven Wischnowsky wrote:
} Subject: Re: PATCH: 3.1.5 - (Sven) Case-insensitive globbing
}
} About the `options for the whole path' thing (which I would like to
} have, too): why not use a generic approach, like the `^' and `-' glob
} modifiers, i.e. `(#i)' works on the current path component, probably
} only up to the next `(#...)' and `(#/i)' works on this and all
} following components (until switched off again).

I think that's getting a bit too complicated.

However, I'm curious how (#i) interacts with parenthesis for grouping.
For example:

zsh% echo zsh-3.1.5/((#i)src/zle|doc/zsh)/make*

Where does the case-insensitivity stop in that expression?  It would be
logical for it to stop at either the vertical bar or the close paren.

BTW, is there going to be a parsing conflict between things like
((#i)src) and math expressions in (( ))?  How do you get the desired
glob behavior if there is?

I'm going to have to catch up on the autocorrect and approximate matching
part of this discussion later, I'm out of time right now.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1998-11-04 18:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-31 10:14 Bart Schaefer
1998-11-02  9:21 ` Zefram
1998-11-02 17:07   ` Peter Stephenson
1998-11-02 17:45     ` Bruce Stephens
1998-11-02 18:06     ` Zefram
1998-11-03  8:12       ` Sven Wischnowsky
1998-11-03 12:22         ` Bruce Stephens
1998-11-03 12:47           ` Bruce Stephens
1998-11-03 15:01             ` Zefram
1998-11-03 15:27               ` Bruce Stephens
     [not found]         ` <MLIST_vbn269dkyw.fsf@snake.isode.com>
1998-11-03 18:09           ` Jarkko Hietaniemi
1998-11-03 18:54             ` Zefram
1998-11-03 19:14               ` Jarkko Hietaniemi
1998-11-03 19:27                 ` Zefram
1998-11-03 19:36                   ` Jarkko Hietaniemi
1998-11-04 18:48                     ` Bart Schaefer [this message]
1998-11-05  9:26                       ` PATCH: 3.1.5: Case-insensitive globbing (2) Peter Stephenson
1998-11-05 18:15                         ` Bart Schaefer
1998-11-06 11:01                           ` PATCH: 3.1.5: doc fix, was re: Case-insensitive globbing Peter Stephenson
1998-11-06 13:43                             ` Bruce Stephens
1998-11-06  9:24                     ` Approximate matching Bart Schaefer

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=981104104858.ZM21585@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).