[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case-insensitive case matching
From: |
Kars Meyboom |
Subject: |
Re: Case-insensitive case matching |
Date: |
9 Nov 2001 00:59:00 -0800 |
prj@po.cwru.edu (Paul Jarc) wrote in message
news:<m3wv116z33.fsf@multivac.cwru.edu>...
> I don't think so, but you can spell out both cases without too much
> trouble.
>
> case "$1" in
> *.[cC]) # or *.c|*.C)
True, but the reason I was asking because I saw a colleague writing a
case statement like this:
case "$cmd" in
[tT][rR][iI][mM])
... trim a log file ...
[dD][eE][lL][eE][tT][eE])
... delete a log file...
Now don't tell me that looks pretty :)
Anyway, maybe something like a \i switch somewhere would make a nice
entry for the wishlist?
Kind regards,
Kars Meyboom.