Re:Bash functions are better than I thought
by dotancohen on Monday November 01, 2021 @03:13AM
(#29063828)
Depends what you're doing. If you need the exit status of something _in_ that subshell, or even just its STDOUT, then you're stuck.
I'll count myself among nobodies, I guess. I use them a fair bit when part of said subshell cd's somewhere, and I don't feel like using pushd/popd, either of which might fail to operate based on my mistakes, but subshells seem to never fail to exit, eventually.