How does the shell interpret command substitution ?
if its a normal command, the shell would spawn a child process and the parent would wait for the child to execute and would then collect its exit status.
if it is a backgroundproce ss, then the parent woul not wait on the child.
in similar context, how would command substitution be executed by the shell ?
if its a normal command, the shell would spawn a child process and the parent would wait for the child to execute and would then collect its exit status.
if it is a backgroundproce ss, then the parent woul not wait on the child.
in similar context, how would command substitution be executed by the shell ?
Comment