rudimentary debug function master
authorPaul Hänsch <paul@plutz.net>
Wed, 24 Jun 2020 10:02:33 +0000 (12:02 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 24 Jun 2020 10:02:33 +0000 (12:02 +0200)
cgilite.sh

index f03f747..2e53832 100755 (executable)
@@ -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="$*"