Re:Bash functions are better than I thought
by yissp on Sunday October 31, 2021 @08:42PM
(#29061942)
The article didn't say you should always use subshells for functions, no exceptions. Just that most of the time it probably makes more sense to do so. And subshell functions can still have side effects like interacting with the filesystem, they just can't modify the parent shell's environment.
[ Parent
| on HN ]
There are no comments on this comment yet.