]> Sergey Matveev's repositories - zk.zsh.git/commitdiff
Local variable's scope
authorSergey Matveev <stargrave@stargrave.org>
Sun, 13 Mar 2022 13:45:07 +0000 (16:45 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 13 Mar 2022 13:45:07 +0000 (16:45 +0300)
zk.zsh

diff --git a/zk.zsh b/zk.zsh
index a8fc0c9c43fb5549e46e604902a9c8a4bfea43df..f4b7a240ba5cd651bcc5d5ce4b10e4f074c46272 100755 (executable)
--- a/zk.zsh
+++ b/zk.zsh
@@ -73,7 +73,7 @@ getrel() {
 
 genhtml() {
     local page=$1
-    local data
+    local data p
     [[ $# -eq 1 ]] && data=`< $page` || data=$2
     data="${data//&/&amp;}"
     data="${data//</&lt;}"