3 ms·
> So nobody uses subshells. 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
by michaelcampbell 5y ago
> So nobody uses subshells.
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.
- dotancohen 5y agoDepends what you're doing. If you need the exit status of something _in_ that subshell, or even just its STDOUT, then you're stuck.