Skip to content

bug(ptx): when -W is an invalid regex, the uutils one not report error but the gnu one does #12790

Description

@HackingRepo

Hi, uutils mainteners

as i see the uutils ptx not handle errors the -W option when a regex is a wrong syntax, as our testing confirms

relunsec@relunsec:~/software/coreutils/target/debug$ ./ptx -W $'^[' a

just no output and exits with status code 0 no errors, however the gnu one handles the error correctly and aknolegded the user that their regex is invalid

relunsec@relunsec:~/software/coreutils/target/debug$ gnuptx -W $'^[' a
gnuptx: Invalid regular expression (for regexp ‘^[)

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