On Thu, Feb 25, 2021 at 10:16:03AM +0000, Mikolaj Kucharski wrote:
> On Thu, Feb 25, 2021 at 11:04:06AM +0100, Marc Espie wrote:
> > On Thu, Feb 25, 2021 at 09:53:04AM +0100, Marc Espie wrote:
> > > next time, please remember to build it.
> > > there's a reason do-build checks the syntax of those perl files.
> >
> > morning brainfart, of course it built. Which begs the question how come the
> > syntax check didn't get it
> >
>
> $ find files/ -type f -name \*.pm -print -exec /usr/bin/false \;
> files/Quirks.pm
> files/Quirks/ghc.pm
>
> $ echo $?
> 0
>
Below gives expected result of failure.
$ find files/ -type f -name \*.pm -print0 | xargs -r0t -I% perl -c %
perl -c files/Quirks/ghc.pm
files/Quirks/ghc.pm syntax OK
perl -c files/Quirks.pm
String found where operator expected at files/Quirks.pm line 2196, near
""Upstrem moved to unversioned tarballs, use the plan9port (same upstream)
package instead""
(Missing semicolon on previous line?)
syntax error at files/Quirks.pm line 2196, near ""Upstrem moved to unversioned
tarballs, use the plan9port (same upstream) package instead""
files/Quirks.pm had compilation errors.
xargs: perl exited with status 255
$ echo $?
124
--
Regards,
Mikolaj