autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] Mention how to silence program probes.


From: Ralf Wildenhues
Subject: Re: [PATCH] Mention how to silence program probes.
Date: Tue, 11 May 2010 22:08:51 +0200
User-agent: Mutt/1.5.20 (2009-10-28)

Hi Eric, and thanks for the patch.  A couple of small nits:

* Eric Blake wrote on Tue, May 11, 2010 at 04:06:00PM CEST:
> --- a/doc/autoconf.texi
> +++ b/doc/autoconf.texi
> @@ -14793,6 +14793,18 @@ File Descriptors
>  @samp{: `cd /zorglub` 2>/dev/null} expect the error message to
>  escape, while @samp{: `cd /zorglub 2>/dev/null`} works properly.
> 
> +On the other hand, some shells, such as Solaris or FreeBSD
> address@hidden/bin/sh}, warn about missing programs before performing
> +redirections.  Therefore, to silently check whether a program exists, it
> +is necessary to perform redirections on a subshell:
> +
> address@hidden
> +$ @kbd{/bin/sh -c 'nosuch 2>/dev/null}

Missing closing '.

> +nosuch: not found
> +$ @kbd{/bin/sh -c '(nosuch) 2>/dev/null}

Likewise.

> +$ @kbd{bash -c 'nosuch 2>/dev/null'}
> address@hidden example

Cheers,
Ralf



reply via email to

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