What does the command substitution syntax $(command) do in a bash script?
-
A
Runs the command in the background as a subshell
-
B
Captures the stdout output of a command and inserts it inline
-
C
Defines a new subshell environment variable
-
D
Redirects command output to /dev/null silently