* No so case insensitive...?
@ 2006-03-21 4:41 Meino Christian Cramer
2006-03-21 4:58 ` Geoff Wing
0 siblings, 1 reply; 3+ messages in thread
From: Meino Christian Cramer @ 2006-03-21 4:41 UTC (permalink / raw)
To: zsh-users
Hi,
from the manpage II read that adding (#i) makes a pattern case
insensitive. Now I am confused what "pattern" includes.
Is "*" a pattern and "b*" is not ?
Giving
ls -ld *(#i)
prints all upper- and lowercase matches.
ls -ld b*(#i)
prints all matches beginning with "b" but those beginning with "B".
ls -ld *b*(#i)
prints all upper- and lower-case patterns including "b" but not "B".
Game over player one. Insert help to play again... :O)
Keep zshing!
mcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: No so case insensitive...?
2006-03-21 4:41 No so case insensitive...? Meino Christian Cramer
@ 2006-03-21 4:58 ` Geoff Wing
2006-03-21 5:15 ` Meino Christian Cramer
0 siblings, 1 reply; 3+ messages in thread
From: Geoff Wing @ 2006-03-21 4:58 UTC (permalink / raw)
To: Zsh Users
On Tuesday 2006-03-21 15:42 +1100, Meino Christian Cramer output:
: from the manpage II read that adding (#i) makes a pattern case
: insensitive. Now I am confused what "pattern" includes.
>From zshexpn(1):
"Globbing Flags
There are various flags which affect any text to their right
^^^^^^^^^^^^^^
up to the end of the enclosing group or to the end of the pattern;"
% ls -ld (#i)b*
matches all filenames beginning with either b or B.
Regards,
Geoff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: No so case insensitive...?
2006-03-21 4:58 ` Geoff Wing
@ 2006-03-21 5:15 ` Meino Christian Cramer
0 siblings, 0 replies; 3+ messages in thread
From: Meino Christian Cramer @ 2006-03-21 5:15 UTC (permalink / raw)
To: gcw; +Cc: zsh-users
From: Geoff Wing <gcw@zsh.org>
Subject: Re: No so case insensitive...?
Date: Tue, 21 Mar 2006 15:58:24 +1100
OK....you got me :)
Flat-hand-hit-my-forehead-syndrom....
Thanks a lot for the enlightment. ;O))
Have a nice day!!!
mcc
> On Tuesday 2006-03-21 15:42 +1100, Meino Christian Cramer output:
> : from the manpage II read that adding (#i) makes a pattern case
> : insensitive. Now I am confused what "pattern" includes.
>
> >From zshexpn(1):
> "Globbing Flags
> There are various flags which affect any text to their right
> ^^^^^^^^^^^^^^
> up to the end of the enclosing group or to the end of the pattern;"
>
> % ls -ld (#i)b*
>
> matches all filenames beginning with either b or B.
>
> Regards,
> Geoff
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-21 5:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 4:41 No so case insensitive...? Meino Christian Cramer
2006-03-21 4:58 ` Geoff Wing
2006-03-21 5:15 ` Meino Christian Cramer
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).