changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: New helpful dprintvars deubg function.

changeset 354: 6aa689efe8ce
parent 353: 7fdba0a7c348
child 355: 80ecc1f8e78c
author: uriel@engel.se.cat-v.org
date: Fri, 23 Jan 2009 16:46:25 +0100
files: bin/cgilib.rc
description: New helpful dprintvars deubg function.
     1.1--- a/bin/cgilib.rc	Fri Jan 23 16:45:48 2009 +0100
     1.2+++ b/bin/cgilib.rc	Fri Jan 23 16:46:25 2009 +0100
     1.3@@ -5,6 +5,7 @@
     1.4 '
     1.5 
     1.6 fn dprint { echo $* >[1=2] }
     1.7+fn dprintvars { { for(v in $*) { echo -n $v^'#'^$#$v^'=' $$v '; '  }; echo } >[1=2] }
     1.8 
     1.9 fn escape_html { sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' $* }
    1.10