Re: perlcritic script - Mailing list pgsql-hackers

From Tom Lane
Subject Re: perlcritic script
Date
Msg-id 7551.1525812708@sss.pgh.pa.us
Whole thread Raw
In response to Re: perlcritic script  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: perlcritic script  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 5/8/18 13:57, Andrew Dunstan wrote:
>> +    # take executable files that file(1) thinks are perl files
>> +    find . -type f -perm -100 -exec file {} \; -print |
>> +    egrep -i ':.*perl[0-9]*\>' |

> How portable is that?

Well, it's the same code that's in pgperltidy ... but I agree that
it's making a lot of assumptions about the behavior of file(1).

            regards, tom lane


pgsql-hackers by date:

Previous
From: Stas Kelvich
Date:
Subject: Re: Global snapshots
Next
From: Peter Eisentraut
Date:
Subject: Re: perlcritic script