From: Herbert Xu Date: Sat, 21 May 2005 11:01:29 GMT Subject: Re: [PATCH] Fix use of wc in t0000-basic Message-ID: <20050521110129.GA7924@gondor.apana.org.au> In-Reply-To: <7vhdgwj1ed.fsf@assigned-by-dhcp.cox.net> On Sat, May 21, 2005 at 03:53:30AM -0700, Junio C Hamano wrote: > >>>>> "HX" == Herbert Xu writes: > > HX> It's also better to use -eq instead of = since you are comparing > HX> numbers, not strings. If you do that you can keep the double > HX> quotes since the spaces will be removed automatically. > > I remember being burned by busybox "test" which did not ignore > spaces. I do not know if the latest one is fixed, though. Are you sure that it didn't ignore the leading spaces with -eq? The code in question just calls strtol. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt