Skip to content

Commit

Permalink
temp file not working on Windows (Git bash) #20
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Dec 8, 2023
1 parent b72a864 commit e95159e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fhtagn.awk
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ BEGIN {
Prog = "fhtagn"
if (!(Diff = ENVIRON["DIFF"])) Diff = "diff"
if (!(Tmp = ENVIRON["TMPDIR"])) Tmp = "/tmp"
if (!(Rnd = ENVIRON["RANDOM"])) initRnd() # additional source of "random"
initRnd() # additional source of "random"
All = ENVIRON["ALL"]
srand()
Success = Failed = 0
fhtagn()
}
END { if (ToDel) system("rm -f" ToDel) }
function initRnd( c) {
(c = "echo $$") | getline Rnd # using PID serves good approximation to random
(c = "echo $$") | getline Rnd # using PID serves a good approximation to random
close(c)
}
function fhtagn( i,file,err,l,code,nr,line,random,exitCode,stdOutF,stdErrF,testStarted,expected,hasMoreCode) {
Expand Down

0 comments on commit e95159e

Please sign in to comment.