[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: Writing de/compressed data to a terminal policy
From: |
p . z . l |
Subject: |
Re: Re: Writing de/compressed data to a terminal policy |
Date: |
Mon, 10 Feb 2025 17:20:01 +0100 |
User-agent: |
GWP-Draft |
a solution solution
Cat is slow in windoze. It is not a solution. It would be if it was allowed to force like pigz does.
I dont think there is, unless you use one from cygwin or msys.
BTW. using -o is not going to help either. It is exactly the same thing.
Assume that plzip.exe allow to force output:
~~~
% ./lzip.exe -o nul test.txt
lzip: nul: I won't write compressed data to a terminal.
% ./plzip.exe -o nul test.txt
plzip: nul: I won't write compressed data to a terminal.
% ./plzip.exe -f -o nul test.txt
~~~
It all grows out of the fact that the nul is not a file in windows. It is a feature, that is present in every directory and isatty correctly points that there is no such file. But it is not a problem if you allow to force output.
I have already make one that does just that. If you dont like it, fine.
I just pointed out the issue. What you do with that issue is not my business. No any more.