From 8b2052fc705758339b252c13c05b5c48de8a9855 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Wed, 30 Dec 2020 10:45:47 -0500 Subject: [PATCH 1/2] work around recutils problem wrt renaming /tmp/FOO to TARGET - add explanatory comment - set TMPDIR to current-working-directory - export it --- http-status-codes/extend.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/http-status-codes/extend.sh b/http-status-codes/extend.sh index ac09d89..db09f6b 100755 --- a/http-status-codes/extend.sh +++ b/http-status-codes/extend.sh @@ -6,6 +6,12 @@ TARGET="$1" shift cat "$@" > ${TARGET} +# There is a problem w/ some versions of recutils that signals +# error on rename from /tmp/FOO in recset(1). Work around that +# by using current working directory as TMPDIR. +TMPDIR=`pwd` +export TMPDIR + for n in `seq 100 599` do VAL=`recsel -e "Value = $n" -P Description iana.tmp || true` -- 2.29.2