Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: logout from interactive subshell
- X-seq: zsh-users 10849
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-users Mailinglist" <zsh-users@xxxxxxxxxx>
- Subject: Re: logout from interactive subshell
- Date: Thu, 12 Oct 2006 08:04:30 -0700
- In-reply-to: <F7507090F1A72B43A51444325DFBE43101391E89@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <F7507090F1A72B43A51444325DFBE43101391E89@xxxxxxxxxxxxxxxxxxxxxxxxxx>
(I'm not sure why you copied bug-bash, but I've dropped it.)
On Oct 12, 12:20pm, Com MN PG P E B Consultant 3 wrote:
}
} > Is it a subshell or a second-level shell? (In the first case, $$ and
} > $PPID remain the same.)
}
} Could you kindly explain the difference?
A subshell is a shell started with the "( ... )" construct or by
backgrounding a complex command such as a shell function or loop.
It's a shell that has been fork'd, but not exec'd.
A second-level shell is:
} a process (being the current shell, or cleartool, or whatever)
} is doing a fork, followed by an exec of the new shell.
The term "subshell" is often colloquially used to refer to both, but
they really aren't the same thing.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author