Re: The pgperltidy diffs in HEAD - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: The pgperltidy diffs in HEAD
Date
Msg-id CE1092EF-73D2-4605-9520-D6122AAF2568@yesql.se
Whole thread Raw
In response to Re: The pgperltidy diffs in HEAD  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: The pgperltidy diffs in HEAD
List pgsql-hackers
> On 25 Nov 2025, at 20:31, Álvaro Herrera <alvherre@kurilemu.de> wrote:
>
> On 2025-Nov-25, Daniel Gustafsson wrote:
>
>> Agreed. Perhaps something like the attached would work?
>
> Hmm, I got this
>
> src/tools/pgindent/pgperltidy: 10: [: 0: unexpected operator
>
> $ ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 feb  4  2025 /bin/sh -> dash*
>
> (Seems to work ok silently with bash.)

If you replace the if statement with the one below using test, does that make
it work?

    if test $? = 1; then

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: The pgperltidy diffs in HEAD
Next
From: Melanie Plageman
Date:
Subject: Re: Buffer locking is special (hints, checksums, AIO writes)