X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Tue, 03 Aug 2010 06:00:04 +0300 From: Eli Zaretskii Subject: Re: May be redir or bash genertes "Cannot duplicate fd 0: Bad file descriptor (EBADF)" error In-reply-to: <201008022203.28239.juan.guerrero@gmx.de> X-012-Sender: halo1 AT inter DOT net DOT il To: Juan Manuel Guerrero Cc: djgpp AT delorie DOT com Message-id: <83vd7sxux7.fsf@gnu.org> References: <201008022203 DOT 28239 DOT juan DOT guerrero AT gmx DOT de> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Juan Manuel Guerrero > Date: Mon, 2 Aug 2010 22:03:28 +0200 > > Almost all testcases that fail produces diff files that contains lines like this: > + c:/TMP/dj720000: line 1: Cannot duplicate fd 0: Bad file descriptor (EBADF) fd 0 is standard input. Since you don't redirect stdin in the examples you have shown, that must be some bug somewhere. Probably in Bash, but even with that hypothesis I still don't see why Bash would need to redirect stdin. Do you?