Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: exec





On 2024-06-03 07:54, Mark J. Reed wrote:
 Exec has the same impact on the shell as exit - shell go bye bye - it just leaves another program in its place.

So I see.  So it's not just a question of a script removing itself from memory at the point where control passes, it's 'exit' as we see.  Still, the question of who gets control is there -- the computer does not shut off.  But again, that question would be there anyway so 'exec' doesn't make the question any more difficult.  I guess as far as zsh is concerned that's as much as can be said.






Messages sorted by: Reverse Date, Date, Thread, Author