Subject: | Git::Sub (or System::Sub?) clobbers $_ in list context |
The following tests expose the issue:
$ perl -MGit::Sub -le '$_ = "canary"; $out = git::cat_file( qw( --batch-check --batch-all-objects ) ); print "\$_ = $_"'
$_ = canary
$ perl -MGit::Sub -le '$_ = "canary"; @out = git::cat_file( qw( --batch-check --batch-all-objects ) ); print "\$_ = $_"'
$_ =
I've just found this out, but haven't had time to investigate further.
Tested with Git::Sub version 0.161810 and System::Sub version 0.150960.