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

Odd behavior using MULTIOS



Is this the expected behavior?

% cat /etc/system-release
CentOS Linux release 8.2.2004 (Core)
% uname -a
Linux cdblinux.cfhp.com 4.18.0-193.14.2.el8_2.x86_64 #1 SMP Sun Jul 26 03:54:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
% echo $ZSH_VERSION
5.5.1
% cat test.zsh
#!/bin/zsh

setopt MULTIOS

{
print -u3 "Testing"
print  "Second Testing"
} 3>&1 3>/tmp/test
% zsh test.zsh
Second Testing
Testing
% cat /tmp/test
Testing
%





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