Skip to content

Document the perl -0p trick #4

@geofft

Description

@geofft

Several Debathena packages use a transform script that's something like perl -0pe 's/^foo$/bar/m or die' to get the effect of sed s/^foo$/bar/ but cause a build-time error if the regex doesn't match anything. We should document this and why it works.

See for instance https://github.com/mit-athena/ssh-client-config/blob/master/debian/transform_ssh_config.debathena

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions