[Surfraw-devel] surfraw-update-path bug
Nils Gillmann
ng0 at we.make.ritual.n0.is
Mon May 21 19:17:32 BST 2018
Jude DaShiell transcribed 1.2K bytes:
> This probably effects the entire surfraw package but was found here on
> panix.com when I tried to use surfraw-update-path and got perl bad
> interpreter back as an error. One of the system administrators wrote me
> and let me know surfraw-update-path didn't have #!/usr/bin/env perl as its
> first line which is why I got the bad interpreter error back. Not all
> systems have perl in /usr/bin and panix.com is one of them.
> On my home system I tried updating the binary using env and env apparently
> couldn't find perl for whatever reason. I did include the -w switch after
> surfraw-update-path too.
> I am curious, could a perl program be written such that if /usr/bin/perl
> isn't found it tries /usr/bin/env perl before giving up?
Probably. What we do in Guix though, is to either wrap applications or
change the #! for perl to a reliable location in our system. I think I
had a dormant patch fixing this absolutism in surfraw. I should find
and rework it.
More information about the Surfraw-devel
mailing list