diff options
author | Thien-Thi Nguyen <ttn@gnu.org> | 2020-12-30 10:45:47 -0500 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2020-12-30 11:42:01 -0500 |
commit | 3d5ebc3bf5b0a55a33fbba51c1087ecab68bb4e5 (patch) | |
tree | c6f6671cf973c03fd19b4d0b70c8c7074dc82888 /http-status-codes | |
parent | e2f247cf9364ea0d441ae4c7b2f0aaa427e03dae (diff) | |
download | gana-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-x | http-status-codes/extend.sh | 6 |
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" | |||
6 | shift | 6 | shift |
7 | cat "$@" > ${TARGET} | 7 | cat "$@" > ${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. | ||
12 | TMPDIR=`pwd` | ||
13 | export TMPDIR | ||
14 | |||
9 | for n in `seq 100 599` | 15 | for n in `seq 100 599` |
10 | do | 16 | do |
11 | VAL=`recsel -e "Value = $n" -P Description iana.tmp || true` | 17 | VAL=`recsel -e "Value = $n" -P Description iana.tmp || true` |