bash-cache
bash-cache copied to clipboard
Use a shared file descriptor for discarding output
Original report by Michael Diamond (Bitbucket: dimo414).
We could open a file descriptor to /dev/null and discard output to that, instead of separately writing to /dev/null repeatedly, which means opening and closing the file repeatedly. See Wooledge and SO
Some more discussion in #5.