Skip to content

Commit

Permalink
awk: remove temporary files (#525)
Browse files Browse the repository at this point in the history
* awk wrapper doesn't clean up after itself and I am left with all these spam files...
a2pin.6695 a2pout.6695 a2pin.6697 a2pout.6697 a2pin.6699 a2pout.6699 a2pin.6702 a2pout.6702 a2pin.6951 a2pout.6951 a2pin.6953 a2pout.6953

* unlink before exit is better, whether or not the files are written in /tmp
  • Loading branch information
mknos committed Mar 28, 2024
1 parent 3c7b007 commit 279bf05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/awk
Expand Up @@ -131,6 +131,7 @@ if ($@) {
die "Couldn't compile and execute awk-to-perl program: $@\n";
}

unlink $tmpin, $tmpout;
exit 0;

__END__
Expand Down

0 comments on commit 279bf05

Please sign in to comment.