X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; q=dns; s=default; b=BJK3I1iFFyOaAumhPQHEUYi5jLDy
	4TC5L6sh6vAZkPqpGQL7r/dTQKOOjQIngwLQSKzq7opCf9Ao4bKsmWBpk8Oe1Fhv
	eVX+P4yUk7qXmIw4fMmzKgGE1x2fBc+4nHr8fzqiN7w7qc5na2BWkzqylxcGkiTA
	wnMijHKT4F9I8Zo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:content-type:mime-version:subject:from
	:in-reply-to:date:content-transfer-encoding:message-id
	:references:to; s=default; bh=KDGa4HaYYTNRkM13SP+VM/i9X6s=; b=ey
	WgPZ8JfCEe29uiZj1McL4asPqhoQ+u4uV56Hyph6j9aU3m8mOKoNsWIoHkrhmH7V
	BK9JWIpn5JALcIiqG3a1v+UIy57jA5K7pPBuvsgYhim8cHefMmuGsETJ3EPNB5ux
	Fim0zNXIsdx9Y1fU8hstuMiWQlMddETzAtC+4GRIg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: etr-usa.com
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Subject: Re: How to correctly rebase?
From: Warren Young <wyml@etr-usa.com>
In-Reply-To: <loom.20151016T091146-977@post.gmane.org>
Date: Fri, 16 Oct 2015 14:11:39 -0600
Message-Id: <790A4380-09D0-445C-BF3B-9B847468DC44@etr-usa.com>
References: <22046.25592.311399.765933@woitok.gmail.com> <8925F252-F479-4990-B568-1EC612DF39A5@etr-usa.com> <22047.42793.36600.773496@woitok.gmail.com> <41C9E795-AEEC-4378-8548-44DAF7DB98E7@etr-usa.com> <loom.20151016T091146-977@post.gmane.org>
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t9GKBwgB027262

On Oct 16, 2015, at 1:18 AM, Achim Gratz wrote:
> 
> Warren Young writes:
>> It would be nice if rebase were smart enough to look for *.mex and *.oct
> only in known Octave directories, but
>> it isn’t my itch, so I’m not going to be doing anything about it.
> 
> I'll see if that's possible without running yet another find

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’ve restricted it to /usr on the theory that DLLs will always be in /bin, /usr/bin, /usr/lib/*, or /usr/share/*, and that /bin and /usr/bin are the same on Cygwin.  Are there any official Cygwin packages that put them elsewhere?
--
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


