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?
foo
orlockfd
refer to? Is lockfd a special variable? – Chris Stryczynski Oct 14 '18 at 15:52{lockfd}
– llua Oct 15 '18 at 00:19yash
also supports200> file
.rc
,es
,akanga
as well with the>[200] file
syntax. – Stéphane Chazelas Jul 05 '19 at 18:31