On 02/19/2011 06:50 PM, Russell Shaw wrote: > Looking through a ./configure script, i see lots of things being done > with file descriptors >&5 and >&6. What is going on here? eg:
The example only showed use of >&5.
> eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
> $as_echo "$ac_try_echo"; } >&5
> (eval "$ac_compile") 2>conftest.err
> ac_status=$?
> if test -s conftest.err; then
> grep -v '^ *+' conftest.err >conftest.er1
> cat conftest.er1 >&5
> mv -f conftest.er1 conftest.err
> fi
> $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
FD 5 is config.log. That is, everything that redirects output to 5 is
setting up more verbose output that will end up in the log file,
compared to the shorter output that appears on just stdout.
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
