mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-17 14:01:27 +08:00
Mention how to silence program probes.
* doc/autoconf.texi (File Descriptors): Document how to silence a program probe. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
5dc7189c00
commit
41a163620f
@ -1,3 +1,9 @@
|
||||
2010-05-11 Eric Blake <eblake@redhat.com>
|
||||
|
||||
Mention how to silence program probes.
|
||||
* doc/autoconf.texi (File Descriptors): Document how to silence a
|
||||
program probe.
|
||||
|
||||
2010-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Error and warning message formatting cleanups.
|
||||
|
@ -14793,6 +14793,18 @@ must be done @emph{inside} the command substitution. When running
|
||||
@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
|
||||
@command{/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:
|
||||
|
||||
@example
|
||||
$ @kbd{/bin/sh -c 'nosuch 2>/dev/null}
|
||||
nosuch: not found
|
||||
$ @kbd{/bin/sh -c '(nosuch) 2>/dev/null}
|
||||
$ @kbd{bash -c 'nosuch 2>/dev/null'}
|
||||
@end example
|
||||
|
||||
FreeBSD 6.2 sh may mix the trace output lines from the statements in a
|
||||
shell pipeline.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user