From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26547 invoked by alias); 4 Sep 2009 18:03:22 -0000 Received: (qmail 26387 invoked by uid 22791); 4 Sep 2009 18:03:22 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Sep 2009 18:03:13 +0000 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 887981C0011A; Fri, 4 Sep 2009 20:03:10 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 65AEA90210; Fri, 4 Sep 2009 20:03:10 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id wE6qKEI7Rx1x; Fri, 4 Sep 2009 20:03:08 +0200 (CEST) Received: from igel.home (DSL01.83.171.158.218.ip-pool.NEFkom.net [83.171.158.218]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 4 Sep 2009 20:03:08 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 5389510C442; Fri, 4 Sep 2009 20:03:07 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: gdb@sourceware.org Subject: Re: Redirection from fd 7 in configure References: <83ws4e4omy.fsf@gnu.org> X-Yow: Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop in a plate of SAUCE MORNAY? Date: Fri, 04 Sep 2009 18:03:00 -0000 In-Reply-To: <83ws4e4omy.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Sep 2009 20:15:49 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00079.txt.bz2 Eli Zaretskii writes: > What is the purpose of the following line in the GDB configure files? > > exec 7<&0 &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."