aboutsummaryrefslogtreecommitdiff
path: root/http-status-codes
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnu.org>2020-12-30 10:45:47 -0500
committerThien-Thi Nguyen <ttn@gnuvola.org>2020-12-30 11:42:01 -0500
commit3d5ebc3bf5b0a55a33fbba51c1087ecab68bb4e5 (patch)
treec6f6671cf973c03fd19b4d0b70c8c7074dc82888 /http-status-codes
parente2f247cf9364ea0d441ae4c7b2f0aaa427e03dae (diff)
downloadgana-3d5ebc3bf5b0a55a33fbba51c1087ecab68bb4e5.tar.gz
gana-3d5ebc3bf5b0a55a33fbba51c1087ecab68bb4e5.zip
work around recutils problem wrt renaming /tmp/FOO to TARGET
- add explanatory comment - set TMPDIR to current-working-directory - export it
Diffstat (limited to 'http-status-codes')
-rwxr-xr-xhttp-status-codes/extend.sh6
1 files changed, 6 insertions, 0 deletions
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"
6shift 6shift
7cat "$@" > ${TARGET} 7cat "$@" > ${TARGET}
8 8
9# There is a problem w/ some versions of recutils that signals
10# error on rename from /tmp/FOO in recset(1). Work around that
11# by using current working directory as TMPDIR.
12TMPDIR=`pwd`
13export TMPDIR
14
9for n in `seq 100 599` 15for n in `seq 100 599`
10do 16do
11 VAL=`recsel -e "Value = $n" -P Description iana.tmp || true` 17 VAL=`recsel -e "Value = $n" -P Description iana.tmp || true`