On Thu, Jul 17, 2008 at 06:24:46PM +0200, Louis-David Mitterrand wrote:
> On Sun, Jul 06, 2008 at 12:53:55PM -0400, Charles Marcus wrote:
> > On 7/4/2008, Wayne Davison ([EMAIL PROTECTED]) wrote:
> >> Other things in the patches dir, suggestions made here, and enhancement
> >> requests from bugzilla will all be reviewed for possible inclusion.
> >
> > I'd still like to see the --ignore-case patch to be made part of the  
> > official rsync source...
> 
> +1 
> 
> That would be an awesome addition for 3.1.0
> 
> Right now I have to run my excludes list through a sed one-liner to get
> the same effect, but it looks pretty ugly.
> 
>       ## *.mp3 -> *.[mM][pP]3
>       EXCLUDE=$(sed -e ':s' -e 's/\*\.\([^ 
> []*\)\([[:alpha:]]\)/*.\1[\U\2\L\2]/g;ts' <<< "$EXCLUDE")

Actually the best way would be to also have a switch to turn on/off case
sensitivity on each pattern:

i- *.mp3 ## case insensitive exclude
i+ *.mp3 ## case insensitive include
## with --ignore-case option in effect
I- *.mp3 ## case sensitive exclude
I+ *.mp3 ## case sensitive include

Just a thought
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to