* Redirection from fd 7 in configure
@ 2009-09-04 17:17 Eli Zaretskii
2009-09-04 18:03 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2009-09-04 17:17 UTC (permalink / raw)
To: gdb
What is the purpose of the following line in the GDB configure files?
exec 7<&0 </dev/null 6>&1
I understand what it does, but why would the configure script want to
do that, and what could go wrong if I modify it (within
gdb/config/djgpp/djconfig.sh) to say what we had with previous
Autotools, namely
exec 6>&1
I'm asking because the DJGPP port of Bash 2.04 doesn't like the new
form, so I'd like to know if it's safe to use the previous version.
TIA
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Redirection from fd 7 in configure
2009-09-04 17:17 Redirection from fd 7 in configure Eli Zaretskii
@ 2009-09-04 18:03 ` Andreas Schwab
2009-09-04 18:11 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2009-09-04 18:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb
Eli Zaretskii <eliz@gnu.org> writes:
> What is the purpose of the following line in the GDB configure files?
>
> exec 7<&0 </dev/null 6>&1
>
> I understand what it does, but why would the configure script want to
> do that,
From autoconf/lib/autoconf/general.m4:
# File Descriptors
# ----------------
# Set up the file descriptors used by `configure'.
# File descriptor usage:
# 0 standard input (/dev/null)
# 1 file creation
# 2 errors and warnings
# AS_MESSAGE_LOG_FD compiler messages saved in config.log
# AS_MESSAGE_FD checking for... messages and results
# AS_ORIGINAL_STDIN_FD original standard input (still open)
#
# stdin is /dev/null because checks that run programs may
# inadvertently run interactive ones, which would stop configuration
# until someone typed an EOF.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Redirection from fd 7 in configure
2009-09-04 18:03 ` Andreas Schwab
@ 2009-09-04 18:11 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-09-04 18:11 UTC (permalink / raw)
To: Andreas Schwab; +Cc: gdb
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: gdb@sourceware.org
> Date: Fri, 04 Sep 2009 20:03:07 +0200
>
> # stdin is /dev/null because checks that run programs may
> # inadvertently run interactive ones, which would stop configuration
> # until someone typed an EOF.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-04 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-04 17:17 Redirection from fd 7 in configure Eli Zaretskii
2009-09-04 18:03 ` Andreas Schwab
2009-09-04 18:11 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox