_SHELL
_SHELL is the current shell number. _SHELL will return 0 for a primary shell, or 1 (or higher) for a shell instance started by a parent TCC process (either directly or via a pipe).