This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [djgpp/commit] Fix the DJGPP build of GDB


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]