Skip to content

[WSL2] Using head with some binaries hangs the terminal #4495

@onomatopellan

Description

@onomatopellan
  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Version 10.0.18980.1
    Ubuntu 18.04 WSL2 from the Store.

  • What you're doing and what's happening:
    head $(which gzip)

  • What's wrong / what should be happening instead:
    In WSL1 it shows some characters and ends with the message "head: error writing 'standard output': Input/output error"
    In WSL2 the Ubuntu terminal/Windows Terminal hangs after showing some characters and not even CTRL+C works. Only option is closing the tab/window.
    Head works correctly in VScode's terminal with Remote WSL plugin or using xterm with VcXsrv though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions