Re: sed: 33: conftest.s1: unescaped newline inside substitute pattern

From: Duane Wessels <wessels@dont-contact.us>
Date: Wed, 17 Apr 2002 17:31:27 -0600 (MDT)

On Wed, 17 Apr 2002, Duane Wessels wrote:

> I'm trying to compile 2.5 on some mac OS/X thing
>
> during configure, conftest.s1 has some lines like this:
>
> s%@ACLOCAL@%${SHELL} /tmp/squid-2.5/cfgaux
> /tmp/squid-2.5/cfgaux/missing --run aclocal%g
>
> This makes sed barf, with this error:
>
> sed: 33: conftest.s1: unescaped newline inside substitute pattern
>
> yay!

Here's the line from configure that sets $am_aux_dir:

        am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`

The problem appears to be that 'cd' is printing the long version
of the directory because it found it in the CDPATH list (":" being
interpreted as the current directory).

I found two ways to fix this:

        am_aux_dir=`unset CDPATH; cd $ac_aux_dir && pwd`

        am_aux_dir=`CDPATH=:; cd ./$ac_aux_dir && pwd`
Received on Wed Apr 17 2002 - 17:31:28 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:12 MST