[Top][All Lists]

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

Re: [PATCH] bootstrap: work with pkg-config

From: Eric Blake
Subject: Re: [PATCH] bootstrap: work with pkg-config
Date: Tue, 05 Oct 2010 09:48:41 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/05/2010 09:41 AM, Pádraig Brady wrote:
Another unrelated thing before I forget.
I didn't notice in the shellology part of the manual
that the default almquist /bin/sh on FreeBSD is noisy when using
a standard idiom for testing the presence of a program.

I'm pretty sure it's in there.  Yep:


For e.g.

FreeBSD-8$ colorls -d .>/dev/null 2>&1
colorls: not found

One can get around this with:

FreeBSD-8$ { colorls -d . ; }>/dev/null 2>&1

Or more commonly with a subshell (same number of forks under bash 4.1, at any rate):

(colorls -d .) >/dev/null 2>&1

But yes, mentioning that {} works instead of a subshell might be nice, particularly if bash ever learns some of dash's optimizations for fewer forks.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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