[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] bootstrap: avoid broken Solaris sed
From: |
Eric Blake |
Subject: |
Re: [PATCH] bootstrap: avoid broken Solaris sed |
Date: |
Mon, 15 Nov 2010 09:05:43 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6 |
On 11/13/2010 07:16 PM, Paul Eggert wrote:
> On 11/13/2010 03:18 PM, Eric Blake wrote:
>> + if test -x /usr/xpg4/bin/sed; then
>
> I'm leery about using XPG4 sed on Solaris.
> That has its own set of bugs, which in practice can
> bite just as often as the standard 'sed', maybe more
> often. One classic example: it can't handle scripts
> containing more than 100 lines. I'm sure there are
> others.
>
> Instead, I suggest rewriting 'bootstrap' so that it
> works even with standard 'sed' on Solaris. In this
> case it's pretty easy: the rewrite is shorter and
> arguably clearer than the original.
I like this alternative. Certainly a smaller patch than my proposal for
guaranteeing a semi-decent sed, and still easy to follow what the sed
script is doing.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [libvirt] boostrap: gzip version check problem on FreeBSD, (continued)
- Re: [libvirt] boostrap: gzip version check problem on FreeBSD, Eric Blake, 2010/11/12
- Re: [libvirt] boostrap: gzip version check problem on FreeBSD, Ralf Wildenhues, 2010/11/13
- Re: [libvirt] boostrap: gzip version check problem on FreeBSD, Eric Blake, 2010/11/13
- [PATCH] bootstrap: avoid broken Solaris sed, Eric Blake, 2010/11/13
- Re: [PATCH] bootstrap: avoid broken Solaris sed, Bruno Haible, 2010/11/13
- [PATCHv2] bootstrap: avoid broken Solaris sed, Eric Blake, 2010/11/13
- Re: [PATCH] bootstrap: avoid broken Solaris sed, Eric Blake, 2010/11/13
- Re: [PATCH] bootstrap: avoid broken Solaris sed, Paul Eggert, 2010/11/13
- Re: [PATCH] bootstrap: avoid broken Solaris sed, Bruno Haible, 2010/11/13
- Re: [PATCH] bootstrap: avoid broken Solaris sed, Paul Eggert, 2010/11/14
- Re: [PATCH] bootstrap: avoid broken Solaris sed,
Eric Blake <=
- Re: [PATCH] bootstrap: avoid broken Solaris sed, Paul Eggert, 2010/11/15