From owner-cvs-all Sun Dec 23 1:59:58 2001 Delivered-To: cvs-all@freebsd.org Received: from hex.databits.net (hex.csh.rit.edu [129.21.60.203]) by hub.freebsd.org (Postfix) with SMTP id B255237B419 for ; Sun, 23 Dec 2001 01:59:49 -0800 (PST) Received: (qmail 70888 invoked by uid 1001); 23 Dec 2001 09:59:49 -0000 Date: Sun, 23 Dec 2001 04:59:49 -0500 From: Pete Fritchman To: Sergey Babkin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sh redir.c Message-ID: <20011223045949.A70844@databits.net> References: <200112220240.fBM2ew131527@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112220240.fBM2ew131527@freefall.freebsd.org>; from babkin@FreeBSD.org on Fri, Dec 21, 2001 at 06:40:58PM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ++ 21/12/01 18:40 -0800 - Sergey Babkin: | babkin 2001/12/21 18:40:58 PST | | Modified files: | bin/sh redir.c | Log: | Added ability to do ">/dev/stdout". The apsfilter people are anxious | to get it MFCed in time for release 4.5. | | MFC after: 2 weeks | | Revision Changes Path | 1.14 +2 -4 src/bin/sh/redir.c This change breaks autoconf (and probably more things). Autoconf is a big ugly shell script, and uses some redirection magic to send things to the 'configure' file (which it generates from configure.in): if test $# -eq 0; then exec 4> configure; chmod +x configure else exec 4>&1 fi I'm not a shell script guru by any means, but when I was debugging this problem I saw this redirect stuff in autoconf and thought of this change (because everything was working OK on a -current from dec 1st, and just broke today when I upgraded to today's -current). Before redir.c rev 1.14, configure gets created by autoconf and has the configure script in it. With this patch, configure gets created but the actual contents go to stdout. -pete -- Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)] finger petef@databits.net for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message