Branch: refs/heads/craigb/avoid_brace_expansion
  Home:   https://github.com/Perl/perl5
  Commit: c9743b86ead6a951111e289a5fb92f5fb47dbe5d
      
https://github.com/Perl/perl5/commit/c9743b86ead6a951111e289a5fb92f5fb47dbe5d
  Author: Craig A. Berry <[email protected]>
  Date:   2023-04-16 (Sun, 16 Apr 2023)

  Changed paths:
    M t/harness

  Log Message:
  -----------
  t/harness: avoid brace expansion

Brace expansion is not available in a POSIX shell, is handled
slightly differently by the shells that do support it, and is
unlikely to work when the underlying implementation for Perl's
glob() function is not a Unix shell.  So instead of doing:

    {foo,bar,baz}/*.t

just accumulate the results of simpler glob operations:

    foo/*.t
    bar/*.t
    baz/*.t

This also allows us to dispense with the recursive function
_extract_tests() and its fancy dispatch based on reference type;
we would only ever be calling it with a simple string argument,
so we might as well just call glob() directly.


Reply via email to