From owner-freebsd-bugs Sun Nov 4 21:55: 5 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from alcor.twinsun.com (alcor.twinsun.com [198.147.65.9]) by hub.freebsd.org (Postfix) with ESMTP id 5F91A37B416; Sun, 4 Nov 2001 21:55:02 -0800 (PST) Received: from sic.twinsun.com ([192.54.239.17]) by alcor.twinsun.com (8.11.3/8.11.3) with ESMTP id fA55swJ27811; Sun, 4 Nov 2001 21:54:58 -0800 (PST) Received: (eggert@localhost) by sic.twinsun.com (8.10.2+Sun/8.10.2) id fA55svl17021; Sun, 4 Nov 2001 21:54:57 -0800 (PST) Date: Sun, 4 Nov 2001 21:54:57 -0800 (PST) From: Paul Eggert Message-Id: <200111050554.fA55svl17021@sic.twinsun.com> To: naddy@FreeBSD.ORG Cc: bug-tar@gnu.org, freebsd-bugs@FreeBSD.ORG, netbsd-bugs@NetBSD.ORG In-reply-to: <20011105013348.A74836@kemoauc.mips.inka.de> (naddy@freebsd.org) Subject: Re: gtar 1.13.25 configure fails on FreeBSD/NetBSD due to sh bug References: <20011105013348.A74836@kemoauc.mips.inka.de> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > From: Christian Weisgerber > Date: Mon, 5 Nov 2001 01:33:48 +0100 > > test $jm_cv_func_decl_free != yes > > cat >>confdefs.h < #define HAVE_DECL_FREE $? > EOF > > FreeBSD's /bin/sh resets $? when it starts evaluating the redirections, > so the symbol is always defined to 0 regardless of the previous > test result. That probably qualifies as a shell bug, It sure does. I'll CC: this message to freebsd-bugs and netbsd-bugs to let them know about the bug. Thanks for the bug report. I'll install a workaround in the next test version of GNU tar. > Other shells derived from 4.4BSD sh, notably NetBSD's /bin/sh, also > suffer from this. I tested GNU tar with OpenBSD 2.9, which does not have the bug. If it matters, its /bin/sh is PD KSH v5.2.14 99/07/13.2. (I don't have a FreeBSD or NetBSD system handy.) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message