Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2004 12:15:12 GMT
From:      Jens Schweikhardt <schweikh@FreeBSD.org>
To:        joek@mail.flyingcroc.net, schweikh@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/39198: sh aborts on variables with periods
Message-ID:  <200407241215.i6OCFC4M077861@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: sh aborts on variables with periods

State-Changed-From-To: open->closed
State-Changed-By: schweikh
State-Changed-When: Sat Jul 24 12:13:13 GMT 2004
State-Changed-Why: 
The discussion has settled on using a different test method
to detect the shell incarnation. No need to change /bin/sh.

BTW, this is what I use for years and has never let me down:
if test -n "${ZSH_VERSION}"; then
    _SHELL=zsh
elif test -n "${BASH_VERSION}"; then
    _SHELL=bash
elif test -n "${FCEDIT}"; then
    _SHELL=ksh
elif test "${PS3}" = ""; then
    _SHELL=sh
else
    _SHELL=unknown
fi

http://www.freebsd.org/cgi/query-pr.cgi?pr=39198



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407241215.i6OCFC4M077861>