Skip to content

Commit 9d2b054

Browse files
committed
Meta/cook: fix reading from the standard input stream
1 parent 7556625 commit 9d2b054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cook

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,10 @@ if ($wildo) {
862862
if (!@ARGV) {
863863
open($fd, "<", "Meta/whats-cooking.txt");
864864
} elsif (@ARGV != 1) {
865-
print STDERR "$0 --wildo [filename|HEAD]\n";
865+
print STDERR "$0 --wildo [filename|HEAD|-]\n";
866866
exit 1;
867+
} elsif ($ARGV[0] eq '-') {
868+
$fd = \*STDIN;
867869
} elsif ($ARGV[0] =~ /^HEAD/) {
868870
open($fd, "-|",
869871
qw(git --git-dir=Meta/.git cat-file -p),

0 commit comments

Comments
 (0)