7 ms·
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 subsh
by yissp 5y ago
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.