From bcebc690878da6cc89fccc50632fa3f398c1dc2a Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Wed, 8 Aug 2018 01:05:23 +0300 Subject: [PATCH] Fix ksh93 hack that breaks dash. The dash shell fails to implement local command properly, and errors out in case such simple as "if ! local foo; then ..." --- share/cht.sh-posix.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/cht.sh-posix.txt b/share/cht.sh-posix.txt index 86afd70..e5614e3 100755 --- a/share/cht.sh-posix.txt +++ b/share/cht.sh-posix.txt @@ -35,7 +35,7 @@ case "$OSTYPE" in esac # for KSH93 -if ! local foo 2>/dev/null; then +if echo $KSH_VERSION | grep -q ' 93' && ! local foo 2>/dev/null; then alias local=typeset fi