[Pkg-zsh-devel] Bug#879596: zsh forks when checking syntax
Jakub Wilk
jwilk at jwilk.net
Mon Oct 23 09:27:48 UTC 2017
Package: zsh
Version: 5.4.2-1
Severity: minor
zsh calls fork() when checking syntax of scripts that use "&":
$ latrace -I --sym fork -- zsh -n -c 'f&f&f&f'
5222 fork [/lib/i386-linux-gnu/libc.so.6]
5222 fork [/lib/i386-linux-gnu/libc.so.6]
5222 fork [/lib/i386-linux-gnu/libc.so.6]
zsh finished - exited, status=0
This is weird. Forking is a rather expensive operation, and surely it
should be possible to check syntax without it.
-- System Information:
Architecture: i386
Versions of packages zsh depends on:
ii zsh-common 5.4.2-1
ii libc6 2.24-17
ii libcap2 1:2.25-1.1
ii libtinfo5 6.0+20170902-1
Versions of packages zsh recommends:
ii libncursesw5 6.0+20170902-1
ii libpcre3 2:8.39-5
--
Jakub Wilk
More information about the Pkg-zsh-devel
mailing list