Made detection of sh more stable.

This commit is contained in:
Holger Rapp 2013-10-03 13:10:03 +02:00
parent 88645f03ea
commit 1097b280a3

View File

@ -10,10 +10,12 @@ def testShell(scope, shell):
# first since they indicate an override by the user.
def getShell():
for scope in ["g", "b"]:
for shell in ["bash", "sh", "kornshell"]:
for shell in ["bash", "posix", "sh", "kornshell"]:
if testShell(scope, shell) == "1":
if shell == "kornshell":
return "ksh"
if shell == "posix":
return "sh"
return shell
return "sh"
endglobal