Skip to content

Commit

Permalink
t/zsh: refactor file slurping.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Apr 29, 2024
1 parent d03d11e commit 572643d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions t/zsh.t
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ cmp_ok($n, '==', length($input), 'input');
xnote($output);
cmp_ok($status, 'eq', 'OK', 'found options');
open $fh, '<', "$basedir/doc/README";
my $readme;
{
my $readme = do {
local $RS = undef;
$readme = <$fh>;
}
<$fh>;
};
close $fh;
$readme =~ /\n +options:\n((?:.+\n)+)/ or die;
my $help_options = $1;
Expand Down

0 comments on commit 572643d

Please sign in to comment.