Re: perlcritic script

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: perlcritic script
Дата
Msg-id fff73c19-c36e-3173-d7b5-a9a4f579be5c@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: perlcritic script  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: perlcritic script  ("Tels" <nospam-pg-abuse@bloodgate.com>)
Список pgsql-hackers
On 5/8/18 16:51, Tom Lane wrote:
> 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).

OK, but then it's not a problem for this thread.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: perlcritic script
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] Parallel Append implementation