
OPERATIONAL DEFECT DATABASE
...

...
What were you trying to do that didn't work? Packaging a script with this shebang: #!/usr/bin/env -S vd -p Produces scripts with invalid shebang. Please provide the package NVR for which bug is seen: redhat-rpm-config-282-1.el10 redhat-rpm-config-207-1.el9 redhat-rpm-config-201-1.el9 redhat-rpm-config-131-1.el8 How reproducible: Steps to reproduce Build the spec: Name: reproducer-env-flags Version: 0 Release: 0%{?dist} Summary: ... License: MIT BuildArch: noarch %description ... %prep %build %install mkdir -p %{buildroot}%{_bindir} echo '#!/usr/bin/env -S vd -p' > %{buildroot}%{_bindir}/xxx chmod +x %{buildroot}%{_bindir}/xxx %files %{_bindir}/xxx Expected results + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/xxx from /usr/bin/env -S vd -p to #!/usr/bin/vd -p Actual results + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/xxx from /usr/bin/env -S vd -p to #!/usr/bin/-S vd -p Fix available for backporting in https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/285
Done-Errata
Red Hat Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.