autoconf-patches
[Top][All Lists]
Advanced

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

Re: unstable autotest --trace with FreeBSD sh and pipes


From: Eric Blake
Subject: Re: unstable autotest --trace with FreeBSD sh and pipes
Date: Mon, 01 Mar 2010 23:22:22 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Ralf Wildenhues on 2/28/2010 10:12 AM:
> The testsuite passed on FreeBSD with the two patches applied.
> 
> 
> The trace lines for the two commands in the pipeline are intermingled.
> Ugh.

Indeed.  If nothing else, autoconf is a great testing ground for sniffing
out some really hideous bugs in various shells.

> 
> I know this will make you weep, killing off some of that precious m4
> time you worked so hard for; but just matching for | gives lots of false
> positives that have ||, even [^|]|[^|] has quite a few false positives
> from egrep and sed 's|||' commands which I don't know how to avoid.

I don't see any way around a regexp, without paying the penalty for more
false positives on non-pipelines.

> 
>     Fix Autotest tracing of shell pipelines for FreeBSD sh.
>     
>     * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
>     commands that contain [^|]|[^|], a likely shell pipeline.
>     * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
>     grep pipeline.
>     * doc/autoconf.texi (File Descriptors): Document limitation.
>     * tests/autotest.at (Trace output): New test.
>     
>     Signed-off-by: Ralf Wildenhues <address@hidden>

The patch looks good; please apply.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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