From owner-freebsd-bugs Wed Jun 12 13:53:48 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from reiher.informatik.uni-wuerzburg.de (wi4d22.informatik.uni-wuerzburg.de [132.187.101.122]) by hub.freebsd.org (Postfix) with ESMTP id AC95237B409 for ; Wed, 12 Jun 2002 13:53:40 -0700 (PDT) Received: from informatik.uni-wuerzburg.de (localhost [127.0.0.1]) by reiher.informatik.uni-wuerzburg.de (Postfix) with ESMTP id 1E8C2AFCA; Wed, 12 Jun 2002 22:53:39 +0200 (CEST) Message-ID: <3D07B4D2.6090407@informatik.uni-wuerzburg.de> Date: Wed, 12 Jun 2002 22:53:38 +0200 From: Matthias Buelow User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Kelsey Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/39198: sh aborts on variables with periods References: <200206122010.g5CKA3L09165@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Joe Kelsey wrote: > zsh, but I will keep it in mind. I just want to separate generic ksh > from /bin/sh, and RANDOM should do that. The check for KSH_VERSION > fails in ksh93 since they went to the .sh.version parameter and dropped > KSH_VERSION completely, a real killer. You might be confusing pdksh (the public domain ksh clone) with ksh88, since KSH_VERSION is a pdksh-only artifact (ksh88 has neither KSH_VERSION, nor .sh.version). But you're right, for just distinguishing it from sh, checking RANDOM would suffice. --mkb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message