mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
The ksh93 shell doesn't have "local", but "typeset" could be used instead.
This commit is contained in:
@@ -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="$*"
|
||||
|
||||
Reference in New Issue
Block a user