Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the perl -0p trick #4

Open
geofft opened this issue Jun 6, 2019 · 1 comment
Open

Document the perl -0p trick #4

geofft opened this issue Jun 6, 2019 · 1 comment

Comments

@geofft
Copy link
Member

geofft commented Jun 6, 2019

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

@vulpicastor
Copy link
Member

Do you have a recommendation for the best place for this information? The DOCUMENTATION file points me to either https://debathena.mit.edu/config-package-dev/ or the packaged examples. I suspect the latter because it seems too miscellaneous to be included in the main doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants