From owner-cvs-all Fri Dec 14 3:53:30 2001 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 55D7937B416; Fri, 14 Dec 2001 03:53:16 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBEBqh965355; Fri, 14 Dec 2001 13:52:43 +0200 (EET) (envelope-from ru) Date: Fri, 14 Dec 2001 13:52:43 +0200 From: Ruslan Ermilov To: Guido van Rooij Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc/periodic/security 550.ipfwlimit 650.ip6fwlimit Message-ID: <20011214135243.B64853@sunbay.com> References: <200112140858.fBE8wL596075@freefall.freebsd.org> <20011214115711.A34932@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011214115711.A34932@gvr.gvr.org> User-Agent: Mutt/1.3.23i 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 On Fri, Dec 14, 2001 at 11:57:11AM +0100, Guido van Rooij wrote: > On Fri, Dec 14, 2001 at 12:58:21AM -0800, Ruslan Ermilov wrote: > > ru 2001/12/14 00:58:21 PST > > > > Modified files: > > etc/periodic/security 550.ipfwlimit 650.ip6fwlimit > > Log: > > Work around the bugfeature of test(1). > > > > PR: bin/32822 > > > If I run this: > if [ 0 -eq 0 -a "" -ne 1 ]; > then echo foo > fi > then it works. Isn't the real problem that "${IPFW_LOG_LIMIT}" gets lost > somehow? > Nope, try this: FOO= if [ 0 -eq 1 -a ${FOO} -ne 1 ]; then echo OK fi An alternate solution would be to write: if [ 0 -eq 1 -a "${FOO}" -ne 1 ]; then Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message