New helpful dprintvars deubg function.

This commit is contained in:
Uriel 2009-01-23 16:46:25 +01:00
parent fc6fd5045f
commit 61be624c8c

View file

@ -5,6 +5,7 @@ NEW_LINE='
'
fn dprint { echo $* >[1=2] }
fn dprintvars { { for(v in $*) { echo -n $v^'#'^$#$v^'=' $$v '; ' }; echo } >[1=2] }
fn escape_html { sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' $* }