From owner-freebsd-bugs Wed Jun 12 11:20: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 394C537B406 for ; Wed, 12 Jun 2002 11:20:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5CIK3089623; Wed, 12 Jun 2002 11:20:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 12 Jun 2002 11:20:03 -0700 (PDT) Message-Id: <200206121820.g5CIK3089623@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: bin/39198: sh aborts on variables with periods Reply-To: Peter Pentchev 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 The following reply was made to PR bin/39198; it has been noted by GNATS. From: Peter Pentchev To: Joe Kelsey Cc: bug-followup@FreeBSD.org Subject: Re: bin/39198: sh aborts on variables with periods Date: Wed, 12 Jun 2002 21:16:19 +0300 On Wed, Jun 12, 2002 at 06:08:27PM -0000, Joe Kelsey wrote: > > >Number: 39198 > >Category: bin > >Synopsis: sh aborts on variables with periods > >Originator: Joe Kelsey > > >Description: > /bin/sh does not gracefully accept variables with periods. [snip] > if [ -n "$KSH_VERSION"] || [ -n "${.sh.version}" ] > then > # ksh-only stuff > fi > > Either /bin/sh has to allow parameters to contain periods or it > has to provide a reliable method of detecting /bin/sh versus > ksh. Does ksh93 set $SHELL to 'sh' and, for login shells, '-sh', or does it (as it should, IMHO) set it to 'ksh' and '-ksh', respectively? G'luck, Peter -- Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence contradicts itself - or rather - well, no, actually it doesn't! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message