mjohnston@itactics.com (Mathew Johnston) wrote:
> Consider 3 bash processes (1, 2, 3), nested in a tree with a parent
> of P. Say, P->1->2->3. I P to know what the current working
> directory of the deepest bash process is. So, when 3 starts up, it
> needs to send an event somehow to P describing it's pwd; when 3 does
> a change of pwd, it needs to notify P also. When 3 exists, 2 must
> notify P to say that the process exited, and describe it's pwd.
Will 1 be active while 2 is running, or 2 active while 3 is running?
If not, PROMPT_COMMAND could work, if you don't mind redundant
notifications.
paul