diff options
author | Eric Wong <e@80x24.org> | 2021-01-10 12:15:10 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-12 03:51:42 +0000 |
commit | 372ff2ba6467e8fcea3eb19e5527a5fc398802f9 (patch) | |
tree | 25666da8ab1d3a66ddf1a8e731fc93b4cff917db | |
parent | c58c970e52e3315e407df5bf46092f613502caa6 (diff) | |
download | public-inbox-372ff2ba6467e8fcea3eb19e5527a5fc398802f9.tar.gz |
... instead of STD*{IO}. I'm not sure why *STDOUT{IO} being an IO::File object disqualifies it from the "-t" perlop check returning true on TTY, but it does. So use *STDOUT{GLOB} for now. http://nntp.perl.org/group/perl.perl5.porters/258760 Message-ID: <X/kgIqIuh4ZtUZNR@dcvr>
-rw-r--r-- | lib/PublicInbox/LEI.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 24f5930b..17023191 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -795,9 +795,9 @@ sub oneshot { local %PATH2CFG; umask(077) // die("umask(077): $!"); dispatch((bless { - 0 => *STDIN{IO}, - 1 => *STDOUT{IO}, - 2 => *STDERR{IO}, + 0 => *STDIN{GLOB}, + 1 => *STDOUT{GLOB}, + 2 => *STDERR{GLOB}, env => \%ENV }, __PACKAGE__), @ARGV); } |