This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to correctly rebase?
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 18 Dec 2015 17:28:27 +0100
- Subject: Re: How to correctly rebase?
- Authentication-results: sourceware.org; auth=none
- References: <22046 dot 25592 dot 311399 dot 765933 at woitok dot gmail dot com> <8925F252-F479-4990-B568-1EC612DF39A5 at etr-usa dot com> <22047 dot 42793 dot 36600 dot 773496 at woitok dot gmail dot com> <41C9E795-AEEC-4378-8548-44DAF7DB98E7 at etr-usa dot com> <loom dot 20151016T091146-977 at post dot gmane dot org> <790A4380-09D0-445C-BF3B-9B847468DC44 at etr-usa dot com>
Warren Young writes:
> How about something like
>
> find /usr -name ${extensions} | grep -vP '(?<!octave)mex' | ditto-for-oct
>
> The syntax isnât vetted, but basically Iâm saying that GNU grepâs
> Perl-compatible regex mode supports negative lookbehind, which seems
> like it should do what you want here.
I can't use that with -regex in find, I'll have to stick to egrep
compatible syntax. But lookbehind isn't really necessary in this case,
so it seems that this might work, albeit certainly slower than before.
I'll have to check which prefixes can possibly have these files in order
to let the regex engine bail out as early as possible without
backtracking too much.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
DIY Stuff:
http://Synth.Stromeko.net/DIY.html
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple