Redirecting standard streams in Windows
Alexander Zhirov
azhirov1991 at gmail.com
Wed Jul 19 17:02:16 UTC 2023
On Wednesday, 19 July 2023 at 00:13:04 UTC, Adam D Ruppe wrote:
> How does the cat program know what the encoding of the file is?
>
> Try opening it in notepad or something and specifying the
> encoding. I betcha it is perfectly fine.
Strange. Everything works correctly on the command line. And the
file redirection works and `2>&1` works. But in PowerShell it
gives errors. Moreover, PowerShell reacts to `FILE_TYPE_PIPE`,
and CMD reacts to `FILE_TYPE_DISK`.
More information about the Digitalmars-d-learn
mailing list