partial subshell detection
reverted subshell nesting detection