From owner-freebsd-bugs Fri Oct 20 17:40:43 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA26599 for bugs-outgoing; Fri, 20 Oct 1995 17:40:43 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id RAA26586 for ; Fri, 20 Oct 1995 17:40:37 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id BAA12359; Sat, 21 Oct 1995 01:39:52 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id BAA10819; Sat, 21 Oct 1995 01:39:51 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id BAA13212; Sat, 21 Oct 1995 01:36:32 +0100 From: J Wunsch Message-Id: <199510210036.BAA13212@uriah.heep.sax.de> Subject: Re: FreeBSD bug in /bin/sh ? To: rackow@mcs.anl.gov (Gene Rackow) Date: Sat, 21 Oct 1995 01:36:31 +0100 (MET) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199510201101.GAA12098@obie> from "Gene Rackow" at Oct 20, 95 06:01:03 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 815 Sender: owner-bugs@freebsd.org Precedence: bulk As Gene Rackow wrote: > > #! /bin/sh > echo -n foo 1>&1 > echo bar 1>&1 > > GNU version 2 configure uses this with echo -n to put "Checking for ..." on > the terminal before doing the test, and then printing the answer on the same > line. Well, GNU configure is known to do weird things. :-) Thanks for the report, i think i've fixed this (even though i don't think redirecting something to myself would make much sense -- but Posix seems to allow it). I found a more serious bug when looking for this (redirecting to a bogus descriptor didn't result in the "Bad file descriptor" message as it ought to be -- this was in violation of Posix). :) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)