delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/16/16:12:02

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Subject: Re: How to correctly rebase?
From: Warren Young <wyml AT etr-usa DOT 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 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>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019