Skip to content

cut on empty string returns unexpected result #714

@mennopruijssers

Description

@mennopruijssers

when using cut on an empty string, the value you want to strip is removed.

Imagine you want to cut dashes from an input string:

cut value "-"

If value is "2019-12-30" the output will be "20191230"
However, if value is an empty string ("") the output is "-".

This seems the opposite of what I would expect based on the description:

Removes all values of arg from the given string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions