1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

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 ..."
This commit is contained in:
Vadim Zhukov
2018-08-08 01:05:23 +03:00
parent 199f4bfbe5
commit bcebc69087
+1 -1
View File
@@ -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