+
Skip to content

Pipe input sometimes doesn't work with wsl.exe #12523

@arixmkii

Description

@arixmkii

Windows Version

Microsoft Windows [Version 10.0.26100.3037]

WSL Version

2.4.8.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.167.4-microsoft-standard-WSL2

Distro Version

Release: 24.04

Other Software

gzip 1.12-1ubuntu3

Repro Steps

Try to compress using pipe from host. For test input it is possible to use "wsl.exe"

type "C:\Program Files\WSL\wsl.exe" | wsl -d Ubuntu gzip > wsl.exe.gz

Expected Behavior

The compressed output is redirected to file.

Actual Behavior

type "C:\Program Files\WSL\wsl.exe" | wsl -d Ubuntu gzip > wsl.exe.gz

This command will hang indefinitely. gzip process is visible in pgrep, but probably not doing anything.

Diagnostic Logs

There no problems with a different compressor xz

type "C:\Program Files\WSL\wsl.exe" | wsl -d Ubuntu xz > wsl.exe.xz

Would create compressed version

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载