tmanweb: avoid null concatenation - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 3d52c7487fea9190d8ec0ae3afcfa5ac40ee3382 (DIR) parent 60cbcf86349c08ebbce7e20090413bb73bab2013 (HTM) Author: Russ Cox <rsc@swtch.com> Date: Sat, 6 Dec 2008 16:34:33 -0800 manweb: avoid null concatenation Diffstat: M dist/manweb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- (DIR) diff --git a/dist/manweb b/dist/manweb t@@ -32,6 +32,10 @@ for(i in */INDEX) @{ echo '<tr height=1><td colspan=2 bgcolor=#cccccc>' echo '<tr height=1><td>' } + if(~ $#name 0) + name=XXX-name-$j-XXX + if(~ $#n 0) + n=XXX-n-$j-XXX echo -n '<tr><td valign=top><a href="'$name'.html">'$name'('$n')</a><td>' sed -n ' /SH *NAM/,/SH/{