actually, I still need to exit() if infocmp can't be run
authorespie <espie@openbsd.org>
Mon, 6 Nov 2023 08:22:59 +0000 (08:22 +0000)
committerespie <espie@openbsd.org>
Mon, 6 Nov 2023 08:22:59 +0000 (08:22 +0000)
gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm

index 0bfbfcb..18cc574 100644 (file)
@@ -277,6 +277,7 @@ sub Tgetent
            if (!$child) {
                open(STDERR, ">", "/dev/null");
                exec('infocmp', '-CTr', $tmp_term);
+               exit(1);
            }
        } else {
            open($fh, '<', $TERMCAP) || croak "open $TERMCAP: $!";