aboutsummaryrefslogtreecommitdiff
path: root/lib/tools/replace.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-14 16:30:43 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-14 16:30:43 -0700
commitddb839bfd4ba8dbdd214f3e885629fc8fe57e68c (patch)
treeaee183d005229b21a5ce636685f416f97bd5aa9e /lib/tools/replace.nom
parent7f138199078a2fc2b6d6ee8d31da940120c8216a (diff)
Replacing (size of $) with (#$) as should have been done before.
Diffstat (limited to 'lib/tools/replace.nom')
-rwxr-xr-xlib/tools/replace.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tools/replace.nom b/lib/tools/replace.nom
index 314834e..3a56002 100755
--- a/lib/tools/replace.nom
+++ b/lib/tools/replace.nom
@@ -90,7 +90,7 @@ command line program with $args:
$file = (read file $filename)
unless $file:
fail "File does not exist: \$filename"
- $code = (NomsuCode from ($Source $filename 1 (size of $file)) $file)
+ $code = (NomsuCode from ($Source $filename 1 (#$file)) $file)
try:
$tree = ($code parsed)
..if it fails with $msg:
@@ -142,4 +142,4 @@ command line program with $args:
if ((#$replaced) > 0):
write "\($tree2 as nomsu)" to file $filename
..else:
- say ($tree2 as nomsu)
+ say ($tree2 as nomsu) \ No newline at end of file