question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don’t parse the pipeline as text when it is directed from an EXE to another EXE or file. Keep the bytes as-is.

See original GitHub issue

Currently PowerShell parses STDOUT as string when piping from an EXE, while in some cases it should be preserved as a byte stream, like this scenario:

curl.exe http://whatever/a.png > a.png

or

node a.js | gzip -c > out.gz

Affected patterns include: native | native, native > file and (maybe) cat file | native.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:101
  • Comments:67 (4 by maintainers)

github_iconTop GitHub Comments

29reactions
SeeminglySciencecommented, Jun 5, 2023

Forgot to mark the PR as resolving this issue! The PR was merged on 04/27, should be in the next preview 🎉 Closing

Oh also when it does make it to preview, remember to run Enable-ExperimentalFeature PSNativeCommandPreserveBytePipe and file any feedback if you find issues ❤️

23reactions
SeeminglySciencecommented, Feb 10, 2023

Indeed, it’s the one thing stopping many Linux users from pwsh adoption as a primary shell. Has there been any progress on this front, pwsh team?

@potatoqualitee yeah, my PR is ready for review now (#17857). It is a large change in a sensitive area of the code base, so don’t expect a speedy review, but it’s comin’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't parse the pipeline as text when it is directed from ...
Don't parse the pipeline as text when it is directed from an EXE to another EXE or file. Keep the bytes as-is. #18737....
Read more >
Not able to run an exe in jenkins pipeline using powershell
Something like this cmd /c "C:\Jenkins\workspace\utils\disable.exe" -f xmlPath 0 > debug.txt . You can see if the text file is generated at all....
Read more >
Untitled
What's in a coconut, I don t want nobody else but you? ... St george transportation services, Driverpack solution exe file download, Tony...
Read more >
Untitled
#exe Free gps tracking software to track mobile phones, Retunetm mobile ... What does dispenser do in minecraft xbox, Import large text file...
Read more >
RStudio & Posit Workbench Release Notes
Both YAML tag: value syntax and valid R expressions will be parsed. ... After upgrading code-server , the exe setting in vscode.conf may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found