chiark / gitweb /
doctests: check: Define i and o vars
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Dec 2019 15:42:16 +0000 (15:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 22:19:08 +0000 (22:19 +0000)
This makes bash -x debugging easier.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/check

index 35db4ed..5ba1a23 100755 (executable)
@@ -9,7 +9,9 @@ expand <../../README | ./extract-doctest . >/dev/null
 ../../generate sub/dir
 files=$(find -name \*.expected)
 for f in $files; do
-       sed <$f >$f.tmp '
+       i=$f
+       o=$f.tmp
+       sed <$i >$o '
                /^# doctests:/ {
                        r '"${f%/*}/doctest.mk.part"'
                        a