Skip to content

rewrite_shebang does not work when there is a flag in the shebang #11108

@iMichka

Description

@iMichka

What were you trying to do (and why)?

I'm trying to use the rewrite_shebang detected_perl_shebangthe DSL on the xmltoman script (from the xmltoman formula).

What happened (include all command output)?

It does not work because the original shebang has a flag in it (#!/usr/bin/perl -w).

What did you expect to happen?

#!/usr/bin/perl -w to be replaced by #!/usr/bin/env perl (I don't think it's possible to keep the flag though).

Metadata

Metadata

Assignees

Labels

in progressMaintainers are working on thisoutdatedPR was locked due to age

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions