dimo414 / bash-cache

Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
GNU General Public License v3.0
73 stars 4 forks source link

Use a shared file descriptor for discarding output #8

Open dimo414 opened 6 years ago

dimo414 commented 6 years ago

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.