Subject: | suggest verbose show command executed |
Date: | Sun, 15 Mar 2020 17:18:21 +1100 |
To: | bug-Test-Compile [...] rt.cpan.org |
From: | Kevin Ryde <user42_kevin [...] yahoo.com.au> |
In Test::Compile::Internal, it could be good if the $test->verbose(1)
option showed each "perl -c ..." command it executes.
I had a coderef in my @INC and it was not immediately clear where the
resulting message came from:
# sh: 1: Syntax error: "(" unexpected
I'm content to "don't do that" as far as coderefs in @INC go, though
this message suggests some shell quoting wanted. Or maybe run by
list-of-args instead of through the shell's foibles.
(My current favourite list-of-args runner is IPC::Run. It may be too
heavy-weight to want to use from a test module, but convenient.)