cloc: hashbang header has "perl" twice

Russell VT russellvt@gmail.com
Sat Sep 25 10:32:15 GMT 2021


Looking at the current Cygwin source, the she-bang is actually:

#!/usr/bin/env perl


...which means it's going to pick up the first perl interpreter in your
path.

You can confirm this in the cloc code, itself, as well.
<https://github.com/AlDanial/cloc/blob/244c1e619c2b9ea3b7be10ebdb23ecd5b6ee1361/cloc>

Please note that, because this is a Perl module, you can likely just
uninstall the Cygwin package, and then use something like "CPAN install
cloc" to get the latest version in your perl environment (HIGHLY recommend
to install this in your local perl modules, under your home directory).

That said, it looks like someone screwed the pooch on the Cygwin
installer... I installed it via the Cygwin setup utility and have confirmed
your findings. It *SHOULD* be safe to just manually change the she-bang to
"env," if you want to use the Cygwin package, directly.

[image: image.png]

Cheers -
Russell VT


On Sat, Sep 25, 2021 at 12:36 AM Eyal Rozenberg via Cygwin <
cygwin@cygwin.com> wrote:

> I'm not sure how bug reporting "etiquette" works here on the list, but -
> I was sort of expecting an acknowledgement. Or - was I wrong to post my
> bug report here in the first place?
>
> I have another bug (two actually) to report regarding meld, and I want
> to get that report right and not have it lost in the noise.
>
> Eyal
>
> On 22/09/2021 17:20, Eyal Rozenberg via Cygwin wrote:
> > I'm using:
> >
> > Package              Version                        Status
> > cloc                 1.82+20190726+git608f376-1     OK
> >
> > updated today. The first line of /usr/bin/cloc is:
> >
> > #!/usr/bin/perl perl
> >
> > while it should just be:
> >
> > #!/usr/bin/perl
> >
> > (like it is on my Linux machine)
> >
> > Obviously this causes an error when running cloc:
> >
> > Can't open perl script "perl": No such file or directory
> >
> >
> > I would also suggest that you consider using a newer version of cloc, as
> > there have been several releases since 1.82
> >
> > Eyal
> >
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>


-- 
Russell M. Van Tassell <russellvt@gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 21224 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20210925/588e8cf7/attachment-0001.png>


More information about the Cygwin mailing list