autoconf-patches
[Top][All Lists]
Advanced

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

Re: fewer forks during shell detection


From: Ralf Wildenhues
Subject: Re: fewer forks during shell detection
Date: Sat, 15 Nov 2008 11:39:47 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Eric,

* Eric Blake wrote on Fri, Nov 14, 2008 at 03:06:15PM CET:
> 
> According to Ralf Wildenhues on 11/12/2008 12:00 PM:
> > I think you should be able to use
> >   echo '...' 2>/dev/null | ./foo 2>/dev/null

> if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
>           { $as_echo "$as_bourne_compatible""$as_required" | \
>   as_run=a "$as_shell"; } 2>/dev/null; then
> 
> And since that 2>/dev/null is outside the {;}, we're probably okay in this
> case.

Yes, that looks fine to me, thanks.

Cheers,
Ralf




reply via email to

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