From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31482 invoked by alias); 5 Sep 2009 16:18:17 -0000 Received: (qmail 31472 invoked by uid 22791); 5 Sep 2009 16:18:16 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout5.012.net.il (HELO mtaout5.012.net.il) (84.95.2.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Sep 2009 16:18:11 +0000 Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KPI00600AIOM500@i_mtaout5.012.net.il> for gdb-patches@sourceware.org; Sat, 05 Sep 2009 19:18:08 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.50.163]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KPI00E0KAM7AUD0@i_mtaout5.012.net.il>; Sat, 05 Sep 2009 19:18:08 +0300 (IDT) Date: Sat, 05 Sep 2009 16:18:00 -0000 From: Eli Zaretskii Subject: Re: [djgpp/commit] Fix the DJGPP build of GDB In-reply-to: To: Andreas Schwab Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83d4654bat.fsf@gnu.org> References: <83k50d4cst.fsf@gnu.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00124.txt.bz2 > From: Andreas Schwab > Cc: gdb-patches@sourceware.org > Date: Sat, 05 Sep 2009 18:04:06 +0200 > > Eli Zaretskii writes: > > > @@ -2,31 +2,37 @@ > > s|gdb\.c++|gdb.cxx|g > > /ac_rel_source/s|ln -s|cp -p| > > s|\.gdbinit|gdb.ini|g > > +# This works around a bug in DJGPP port of Bash 2.0x > > +s|return $ac_retval|(&)|g > > Looks like you missed escaping the $. It works regardless. The GNU Sed manual says: `$' It is the same as `^', but refers to end of line. `$' also acts as a special character only at the end of the regular expression or subexpression [...] Is this a GNU-specific Sed extension? (I don't mind making it more portable, even if it is, although DJGPP uses GNU Sed.) Thanks.