detect zsh 2.5.02 as found on NeXTstep 3.3; thanks to ft (Frank Terbeck) and chris2 (Christian Neukirchen)

This commit is contained in:
tg 2012-09-18 14:18:59 +00:00
parent eac85ffdf1
commit 89613d34d4
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.581 2012/08/24 19:09:09 tg Exp $' srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.582 2012/09/18 14:18:59 tg Exp $'
#- #-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012 # 2011, 2012
@ -28,6 +28,10 @@ srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.581 2012/08/24 19:09:09 tg Exp $'
LC_ALL=C LC_ALL=C
export LC_ALL export LC_ALL
case $ZSH_VERSION:$VERSION in
:zsh*) ZSH_VERSION=2 ;;
esac
if test -n "${ZSH_VERSION+x}" && (emulate sh) >/dev/null 2>&1; then if test -n "${ZSH_VERSION+x}" && (emulate sh) >/dev/null 2>&1; then
emulate sh emulate sh
NULLCMD=: NULLCMD=:
@ -1487,7 +1491,7 @@ else
#define EXTERN #define EXTERN
#define MKSH_INCLUDES_ONLY #define MKSH_INCLUDES_ONLY
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.581 2012/08/24 19:09:09 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.582 2012/09/18 14:18:59 tg Exp $");
int main(void) { printf("Hello, World!\n"); return (0); } int main(void) { printf("Hello, World!\n"); return (0); }
EOF EOF
case $cm in case $cm in