This happens under :bsd_glob when <>/glob is called in list context.
}
/* chuck it all out, quick or slow */
- assert(SvROK(entriesv));
- entries = (AV *)SvRV(entriesv);
+ if (!on_stack) {
+ assert(SvROK(entriesv));
+ entries = (AV *)SvRV(entriesv);
+ }
if (gimme == G_ARRAY) {
if (!on_stack) {
Copy(AvARRAY(entries), SP+1, AvFILLp(entries)+1, SV *);
}
}
use strict;
-use Test::More tests => 48;
+use Test::More tests => 49;
BEGIN {use_ok('File::Glob', ':glob')};
use Cwd ();
}
is <a b>, 'a b', '<a b> under :bsd_glob';
is <"a" "b">, '"a" "b"', '<"a" "b"> under :bsd_glob';
+is_deeply [<a b>], [q<a b>], '<> in list context under :bsd_glob';