X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Achim Gratz <Stromeko@NexGo.DE>
Subject: [Bug] rebaseall
Date: Thu, 3 May 2012 06:13:46 +0000 (UTC)
Lines: 30
Message-ID: <loom.20120503T080600-849@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
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

In rebaseall a small bug hides in plain sight (the question mark is a literal in
sed regular expressions and needs to be prepended with a backslash to become
"special"):

-----8<---------->8-----
*** c:/Programs/Cygwin/bin/rebaseall.orig	Tue Mar 27 01:51:06 2012
--- c:/Programs/Cygwin/bin/rebaseall	Thu May  3 08:01:47 2012
***************
*** 210,216 ****
        find $f -type f |
          grep -E "\.($Suffixes)\$" |
  	sed -e '/msys-1\.0.*\.dll$/d' -e '/cygwin1\.dll$/d' \
! 	    -e '/cyglsa.*\.dll$/d' -e '/d?ash\.exe$/d' \
  	    -e '/rebase\.exe$/d' >>"$TmpFile"
      done
      ;;
--- 210,216 ----
        find $f -type f |
          grep -E "\.($Suffixes)\$" |
  	sed -e '/msys-1\.0.*\.dll$/d' -e '/cygwin1\.dll$/d' \
! 	    -e '/cyglsa.*\.dll$/d' -e '/d\?ash\.exe$/d' \
  	    -e '/rebase\.exe$/d' >>"$TmpFile"
      done
      ;;
-----8<---------->8-----



Regards,
Achim.


--
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

