Skip to content

Commit

Permalink
Correctly quote the return value from our proc
Browse files Browse the repository at this point in the history
This stops them being interpreted as commands to execute in some
cases - which closes #29.
  • Loading branch information
skx committed Jul 6, 2022
1 parent 05379c6 commit f81a135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/stdlib.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ proc repeat {n body} {
decr n
set res [$body]
}
$res
"$res"
}


Expand Down Expand Up @@ -169,5 +169,5 @@ proc loop {var min max bdy} {
}

// return the last result
$res
"$res"
}

0 comments on commit f81a135

Please # to comment.