Skip to content

Commit eca11af

Browse files
committed
cleanup
1 parent ebb4188 commit eca11af

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "test/framework"]
2+
path = test/framework
3+
url = https://github.com/mle86/sh-tests

test/framework

Submodule framework added at 0e1ee58

to-readme.pl

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212

1313

1414
sub output_filter {
15-
return if $pid = open(STDOUT, '|-');
16-
die "cannot fork: $!" unless defined $pid;
15+
my $pid = open(STDOUT, '|-');
16+
return if $pid > 0;
17+
die "cannot fork: $!" unless defined $pid;
18+
1719
local $/;
1820
local $_ = <STDIN>;
1921

@@ -25,13 +27,12 @@ sub output_filter {
2527
s/^(.+)(?:$)\n^(?:[<\[\(]\*{0,2}(${re_urlprefix}.+?)\*{0,2}[>\]\)])([\s,;\.\?!]*)$/[$1]($2)$3/gm;
2628

2729
print;
28-
2930
exit;
3031
}
3132
output_filter();
3233

3334
sub nextline {
34-
my $keep_blanklines = $_[0] || 0;
35+
my $keep_blanklines = $_[0] // 0;
3536
do { $_ = <> } while (defined($_) && !$keep_blanklines && m/^\s*$/);
3637
defined $_
3738
}

0 commit comments

Comments
 (0)