Skip to content

Osh hangs when reading a device file and piping through multiple commands to "head" #2640

@asokoloski-m

Description

@asokoloski-m

This is a weird one that I think we've boiled down to a minimal case:

This hangs:
cat /dev/zero | cat | head -c 5

This does not:
cat /dev/zero | head -c 5

(using /dev/urandom has the same issue)

It completes successfully without hanging in Bash. Thanks in advance! Oils rocks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions