I'm wondering whether I've called the shell recursively, is there an easy way to find out? Is any solution specific to the shell? I'm using bash.
|
feedback
|
From the bash manpage:
| |||||||||||
feedback
|
|
One way is to use pstree:
| |||
|
feedback
|
This will catch if you do something like:
Although that won't catch something like if you SSH into localhost.
| |||
|
feedback
|
|
Also useful:
| |||
|
feedback
|