Skip to content

Commit 2b0ae5a

Browse files
committed
Add note to README.md about PowerShell (#69, #76)
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.
1 parent c17f5ca commit 2b0ae5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ First build the image, then run it to produce a distribution .zip file:
2727
docker build -t w64devkit .
2828
docker run --rm w64devkit >w64devkit.zip
2929

30-
This takes about half an hour on modern systems. You will need an
31-
internet connection during the first couple minutes of the build.
30+
This takes about half an hour on modern systems. You will need an internet
31+
connection during the first few minutes of the build. **Note:** Do not use
32+
PowerShell because it lacks file redirection.
3233

3334
## Usage
3435

0 commit comments

Comments
 (0)