[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I: tee doesn't handle dash properly
From: |
Dmitry V. Levin |
Subject: |
I: tee doesn't handle dash properly |
Date: |
Tue, 5 Apr 2005 03:04:40 +0400 |
Hi,
According to NEWS file,
"tee -" now writes to standard output instead of to a file named "-".
However, tee closes stdout more than once if file is named "-":
$ env -i tee - </dev/null; echo rc=$?
tee: write error
rc=1
Proposed fix and testcases for tee could be found at
ftp://ftp.altlinux.org/pub/people/ldv/coreutils/coreutils-5.3.1-alt-tee.patch
--
ldv
pgpPjsm6zhPR9.pgp
Description: PGP signature
- I: tee doesn't handle dash properly,
Dmitry V. Levin <=