Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: term::readline::gnu extra spaces on completion

by Eily (Curate)
on Feb 03, 2014 at 17:38 UTC ( #1073237=note: print w/ replies, xml ) Need Help??


in reply to term::readline::gnu extra spaces on completion

Are you sure you are actually running Term::Readline::Gnu? Unless $ENV{PERL_RL} specifies ortherwise, Term::ReadLine indeed tries to use Term::ReadLine::Gnu first, then the EditLine version if it failed, then the Perl version, and at last if all else failed, defaults to Term::ReadLine::Stub where Attribs is defined as : sub Attribs { {} }

Try printing @Term::ReadLine::ISA or the output of Term::ReadLine::Readline() to see which version you are actually using.


Comment on Re: term::readline::gnu extra spaces on completion
Download Code
Replies are listed 'Best First'.
Re^2: term::readline::gnu extra spaces on completion
by daverowntree (Initiate) on Feb 04, 2014 at 09:34 UTC
    Thanks for you suggestions:
    use Term::ReadLine; my $pkg = Term::ReadLine->ReadLine(); print "Term::ReadLine->ReadLine() says \'$pkg\'\n"; my $pkg2 = $ENV{PERL_RL}; print "ENV(PERL_RL) says \'$pkg2\'\n"; print "\@Term::ReadLine::ISA says ", @Term::ReadLine::ISA, "\n";
    gives:

    $ perl ../Tools/term_check.pl
    Term::ReadLine->ReadLine() says 'Term::ReadLine::Gnu'
    ENV(PERL_RL) says ''
    @Term::ReadLine::ISA says Term::ReadLine::GnuTerm::ReadLine::Stub

    So, as far as I can tell, I am running the Gnu version.

      Hmm ... You could check the version of your GRL, it has to be higher than 4.3 for rl_completion_suppress_append to work.

      I don't have any more ideas after that I'm afraid.

        According to the cygwin installer, I'm using readline7. So it /should/ work. I also checked the installed dlls and indeed it is version7.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1073237]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-07-31 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls