With my Bash session, I run this command:
(echo $$ $BASHPID $-)
and I get
22108 25602 himBH
So, my subshell runs as an interactive shell.
If I try to run the same command in background
(echo $$ $BASHPID $-) &
I get the same output. Why does the subshell run as an interactive shell?