libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HEAD: func_quote_for_expand and Solaris 2.6 /bin/sed


From: Ralf Menzel
Subject: Re: HEAD: func_quote_for_expand and Solaris 2.6 /bin/sed
Date: Thu, 15 Feb 2007 13:37:41 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (usg-unix-v)

Ralf Wildenhues <address@hidden> writes:

> On HEAD, quote.test currently fails on Solaris 2.6, because the
> sed_double_backslash script is not portable its /bin/sed, which
> is not POSIX conforming.  This script in general.m4sh is the culprit:
[...]
> I'm a bit out of ideas how to fix this easily, while maintaining
> full generality at the same time.

Hm, did you consider using something like this?

--- snip ---
bs='\\'
bs2='\\\\'
bs4='\\\\\\\\'
dollar='\$'
sed_double_backslash="\
  s/$bs4/$bs4\\
/g
  s/\n$bs2$dollar/$bs2$bs$dollar/g
  s/\n//g"
--- snip ---

I think it is general and it should be portable. Well, at least it
seems to work with /bin/sh of Solaris.

Bye,
Ralf Menzel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]