From: Paul Hänsch Date: Wed, 24 Jun 2020 10:02:33 +0000 (+0200) Subject: rudimentary debug function X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=238f0f8a2932b5ba66f7139c227eaaeb5dd7a013;p=cgilite rudimentary debug function --- diff --git a/cgilite.sh b/cgilite.sh index f03f747..2e53832 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -27,6 +27,8 @@ BR=' ' cgilite_timeout=2 +debug(){ [ $# -gt 0 ] && printf '%s\n' "$@" >&2 || tee -a /dev/stderr; } + PATH(){ local str seg out [ $# -eq 0 ] && str="$(cat)" || str="$*"