This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [djgpp/commit] Fix the DJGPP build of GDB
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 05 Sep 2009 19:16:10 +0300
- Subject: Re: [djgpp/commit] Fix the DJGPP build of GDB
- References: <83k50d4cst.fsf@gnu.org> <m2bplp8jk9.fsf@igel.home>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: gdb-patches@sourceware.org
> Date: Sat, 05 Sep 2009 18:04:06 +0200
>
> Eli Zaretskii <eliz@gnu.org> 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.