Skip to content

tr with d flag generates bad code if there is a replacement string #122

Description

@snoopyjc

tr with d flag generates bad code if there is a replacement string. It only generates correct code if the replacement string is empty. For example:

tr/ac/b/d;

should map a->b and delete all 'c' characters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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