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

Re: File locking within zsh?



Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:

> On May 10,  6:04pm, Tim Writer wrote:
> }
> } IIRC, zsh avoids forking in subshells but don't most
> } shells implement subshells with fork()?
> 
> Zsh forks for subshells, too.  It may avoid an *additional* fork when
> the only thing the subshell does is execute an external command, but
> it always forks at least once.

Okay. But I don't understand this:

    tim@ganesh% echo $ZSH_VERSION
    4.2.5
    tim@ganesh% echo $$; ( echo $$ )
    18095
    18095
    tim@ganesh%

-- 
tim writer <tim@xxxxxxxxxxx>                                  starnix inc.
647.722.5301                                      toronto, ontario, canada
http://www.starnix.com              professional linux services & products



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