From owner-freebsd-bugs Wed Jun 12 17:20:52 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 85D0E37B407 for ; Wed, 12 Jun 2002 17:20:47 -0700 (PDT) Received: from sdn-ar-003dcwashp246.dialsprint.net ([206.133.15.136] helo=moo.holy.cow) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17IIM0-0006Ag-00; Wed, 12 Jun 2002 17:20:44 -0700 Received: by moo.holy.cow (Postfix, from userid 1001) id AE57950BB7; Wed, 12 Jun 2002 20:20:18 -0400 (EDT) Date: Wed, 12 Jun 2002 20:20:18 -0400 From: parv To: Frank v Waveren Cc: freebsd-bugs@freebsd.org Subject: Re: bin/39198: sh aborts on variables with periods Message-ID: <20020613002018.GA38200@moo.holy.cow> References: <200206122010.g5CKA3L09165@freefall.freebsd.org> <20020612214110.GA30199@moo.holy.cow> <1023918173HKC.fvw@yendor.var.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1023918173HKC.fvw@yendor.var.cx> 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 in message <1023918173HKC.fvw@yendor.var.cx>, wrote Frank v Waveren thusly... > > On Wed, Jun 12, 2002 at 05:41:11PM -0400, parv wrote: > > if test $RANDOM = $RANDOM > > omg, you wicked wicked man. That will mysteriously misdetect on ksh/bash > once in 32767 times. Please don't. oh, come on, i am merely conveying what i got in the mail! anyway, i tried... i=0 while [ $i -le 32767 ] do echo -n $i' ' if [ $RANDOM = $RANDOM ] then echo same else echo diff fi i=$(( $i + 1 )) done ...the above more than three times each in bash-2.05 & ksh93-20020317 (i.e. more than 3 * 2 * 2^16 times) and did not get any utterance of 'same'. not that that proves anything... -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message