Skip to content

Matching everything (.*) duplicates output #318

@fdw

Description

@fdw

I tried to use sd to append something to the input, like echo "abc" | sd '(.*)' '${1}def'. However, that returns two lines, once the correct output and once only the replacement def.

Even echo "abc" | sd '(.*)' 'def' fails with the same pattern. echo "abc" | sd '(.*)' '${1}', however, works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions