Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
noclobber overzealous with multios and /dev/stdout
- X-seq: zsh-workers 28314
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: noclobber overzealous with multios and /dev/stdout
- Date: Mon, 4 Oct 2010 23:32:16 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=fCuBj5yOqxO4gtcolAQyk8YoYU75y1WbgMKGAbMGnJM=; b=FlwnvUO4TCHzlmmwBUvtZ0N0NqqPtFicA6jGEyHRZwPMNXGYScx30TpTbDzFN2D4qp s21a6MpXoXbBqhEhMgRwMLUqTxuBYSlIpFGVEypVsG9D2VYyc44ulLdV1dnu2Oxl7fJ/ RT3Y4dlVZi1pZ0AusIVWaeg2qQLQDvkjbRsls=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OcgsU5n9ez0JLfdsDglz40pMnTPBVg/YWc35GR+oF6t43cl3Dgl23dP0T3kERAdr0n VryyzKFX/o+j05g+igk8m6vVxmDRX0DXSyfA+UJSky3db0q3WjsO2IKnFzaM6ZgaP0m6 b/81Td3ZC2FA/PeWlfKo7GGhLxsCH51yjLiag=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I can't really see the logic here, so I'm guessing it's a bug somewhere:
zsh -f
% setopt clobber
% echo test > /dev/stdout > file
test
% echo test > /dev/stdout > file
test
% setopt noclobber
% echo test > /dev/stdout > file
zsh: file exists: file
% rm file
% echo test > /dev/stdout > file
test
% echo test > file > /dev/stdout
zsh: file exists: file
% rm file
% echo test > file > /dev/stdout
zsh: file exists: /dev/stdout
this is also pretty weird
% rm file
% echo test > file > /dev/fd/0
test
% rm file
% echo test > file > /dev/fd/1
zsh: file exists: /dev/fd/1
both 0 and 1 are symlinks to /dev/pts/33
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author