diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-19 17:37:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-19 17:37:37 -0800 |
| commit | a89d69e843ba83df928051005d02a932a9981f46 (patch) | |
| tree | 17f99cda2d4e5f0a7983ed14f4ac559b64944207 /tools/replace.nom | |
| parent | 43ff3892f39188163446f1a00ee8d2aad59e0392 (diff) | |
Autoformatted/auto-upgraded.
Diffstat (limited to 'tools/replace.nom')
| -rwxr-xr-x | tools/replace.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/replace.nom b/tools/replace.nom index ffd96c1..1ec8ecc 100755 --- a/tools/replace.nom +++ b/tools/replace.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V4.10.12.7 +#!/usr/bin/env nomsu -V4.11.12.8 # Tool to find and replace one tree with another. nomsu tools/replace.nom [-i] tree_to_replace replacement file1 file2 directory1 ... @@ -22,7 +22,7 @@ if ((size of %args) < 3): %pattern = (parse (%args::remove index 1)) %replacement = (parse (%args::remove index 1)) for %path in %args: - for file %filename in %path: + for %filename in (files for %path): unless (any [%filename::matches "%.nom$", %filename == "-", %filename == "stdin"]): do next %filename %tree = (parse (read file %filename) from %filename) |
