From 3f16075d8992f3a84a68fc640dc6e7138412d5d1 Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Wed, 11 Jul 2018 11:37:07 +0300 Subject: [PATCH] The ksh93 shell doesn't have "local", but "typeset" could be used instead. --- share/cht.sh.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/cht.sh.txt b/share/cht.sh.txt index e42d899..7e1fa95 100755 --- a/share/cht.sh.txt +++ b/share/cht.sh.txt @@ -34,6 +34,11 @@ case "$OSTYPE" in *) is_macos=no ;; esac +# for KSH93 +if ! local foo 2>/dev/null; then + alias local=typeset +fi + get_query_options() { local query="$*"