Employing the mechanism from the answer at https://unix.stackexchange.com/a/274499/5132 in the Z shell:
(
flock -x 200
echo "test";
) 200>mylockfile2
returns
zsh: parse error near `200'
While in bash it works correctly. What may be the issue here?
fooorlockfdrefer to? Is lockfd a special variable? – Chris Stryczynski Oct 14 '18 at 15:52{lockfd}– llua Oct 15 '18 at 00:19yashalso supports200> file.rc,es,akangaas well with the>[200] filesyntax. – Stéphane Chazelas Jul 05 '19 at 18:31