Sample Header Ad - 728x90

Shell detection of empty subshell

2 votes
1 answer
112 views
[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