From owner-freebsd-bugs Wed Jun 12 17:28:40 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from crawl.var.cx (e166066.upc-e.chello.nl [213.93.166.66]) by hub.freebsd.org (Postfix) with ESMTP id 2879B37B409 for ; Wed, 12 Jun 2002 17:28:36 -0700 (PDT) Received: from yendor.var.cx (yendor.var.cx [192.168.0.6]) by crawl.var.cx (8.11.6/8.9.3) with ESMTP id g5D0SVb08111; Thu, 13 Jun 2002 02:28:31 +0200 Received: from fvw by yendor.var.cx with local (Exim 3.35 #1 (Debian)) id 17IITZ-0001P4-00; Thu, 13 Jun 2002 02:28:33 +0200 Date: Thu, 13 Jun 2002 02:28:33 +0200 From: Frank v Waveren To: parv Cc: freebsd-bugs@freebsd.org Subject: Re: bin/39198: sh aborts on variables with periods Message-ID: <1023927778RGL.fvw@yendor.var.cx> References: <200206122010.g5CKA3L09165@freefall.freebsd.org> <20020612214110.GA30199@moo.holy.cow> <1023918173HKC.fvw@yendor.var.cx> <20020613002018.GA38200@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020613002018.GA38200@moo.holy.cow> User-Agent: Mutt/1.3.28i 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 On Wed, Jun 12, 2002 at 08:20:18PM -0400, parv wrote: > oh, come on, i am merely conveying what i got in the mail! The criticism was mostly directed at the author of the text, and no offence intended to anyone... > anyway, i tried... > ...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... it's quite possible that bash uses for instance a linear PRNG in which case it's not entirely unlikely that depending on configuration the same number will never be created twice in succession. However, this behaviour is not in the spec and thus not guaranteed. It could change, sneaking up behind you and brutally mutilating your scripts in the process. Trusting on it would be unwise. -- Frank v Waveren Fingerprint: 0EDB 8787 fvw@[var.cx|stack.nl|dse.nl|chello.nl] ICQ#10074100 09B9 6EF5 6425 B855 Public key: hkp://wwwkeys.pgp.net/fvw@var.cx 7179 3036 E136 B85D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message