Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Despite appearances, the ">" operator is actually a pipe to Out-File, and GetFileType() returns FILE_TYPE_PIPE for that handle. It is not seekable and does not behave like a file. By default it re-encodes its input, which is virtually always destructive, unwanted, and surprising. Regardless of the wording in its documentation, it is not possible to connect process output to a file, and PowerShell does not support file redirection.
- Loading branch information