eliminate discrepancies between termcap-generated info and infocmp results
authorespie <espie@openbsd.org>
Mon, 6 Nov 2023 13:40:39 +0000 (13:40 +0000)
committerespie <espie@openbsd.org>
Mon, 6 Nov 2023 13:40:39 +0000 (13:40 +0000)
(see user_caps(5))
also obviously protects the term name just in case someone wants to have
fun with it..

gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm

index 18cc574..fa1a9a8 100644 (file)
@@ -276,7 +276,7 @@ sub Tgetent
            warn "cannot run infocmp: $!" if !defined $child;
            if (!$child) {
                open(STDERR, ">", "/dev/null");
-               exec('infocmp', '-CTr', $tmp_term);
+               exec('infocmp', '-CTrx', '--', $tmp_term);
                exit(1);
            }
        } else {