Skip to content

bug(sort): when the pipe sends $'hello' without any \n, sort ignore the requests #13172

Description

@HackingRepo

Hi, uutils mainteners

we confirmed the uu sort, when the pipe send $'hello' with no \n, it ignores the request

as our test confirms

relunsec@relunsec:~/software/coreutils/target/debug$ ./sort pipe

and open a new terminal

relunsec@relunsec:~/software/coreutils/target/debug$ echo -n $'hello' > pipe
relunsec@relunsec:~/software/coreutils/target/debug$ 

as you can see sort ignore the data the pipe says and wait,

while doping the samething for gnu one

relunsec@relunsec:~/software/coreutils/target/debug$ gnusort pipe

and switch to the second terminal and then type the command again

relunsec@relunsec:~/software/coreutils/target/debug$ echo -n $'hello' > pipe
relunsec@relunsec:~/software/coreutils/target/debug$ 

you will see

relunsec@relunsec:~/software/coreutils/target/debug$ gnusort pipe
hello
relunsec@relunsec:~/software/coreutils/target/debug$ 

the gnu one successfully receive the data

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions