[SC1143](https://www.shellcheck.net/wiki/SC1143) suggests that commented parts of a wrapped shell command to be wrapped in a subshell.
Is the Posix shell "smart enough" to not launch a subshell when it sees that it does nothing? What about Bash and Zsh?
Asked by AvidSeeker
(43 rep)
Mar 14, 2024, 01:41 AM
Last activity: Mar 15, 2024, 11:26 AM
Last activity: Mar 15, 2024, 11:26 AM