bash-cache icon indicating copy to clipboard operation
bash-cache copied to clipboard

Use a shared file descriptor for discarding output

Open dimo414 opened this issue 7 years ago • 0 comments

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.

dimo414 avatar Apr 11 '18 05:04 dimo414