Skip Menu |
 

This queue is for tickets about the Devel-REPL CPAN distribution.

Report information
The Basics
Id: 61138
Status: open
Priority: 0/
Queue: Devel-REPL

People
Owner: Nobody in particular
Requestors: chm [...] cpan.org
Cc: ingosch [...] gmx.at
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: ingosch [...] gmx.at
Subject: TAB completion for dir/filenames inserts extra space before done
Download (untitled) / with headers
text/plain 904b
When using Term::ReadLine::Perl with re.pl and doing TAB completion of file and directory names results in a space being inserted following a successful directory completion (even if the directory has possible files or directories within). The desired behavior is demonstrated by using Term::ReadLine::Gnu for the readline implementation as illustrated here. bash$ ls -R test # list the example directory test: a/ b/ c/ test/a: test/b: test/c: bash$ PERL_RL=Perl re.pl $ test/<TAB> # yields this... $ test/ | # where the cursor is at the bar and a # space character has been inserted after # the top level directory name bash$ PERL_RL=Gnu re.pl $ test<TAB> # yields this... $ test/ $ test/<TAB><TAB> # yields this a/ b/ c/ In order to use the path completion with the Perl readline you have to delete by hand the extra space before getting the further completions.
It looks like setting $rl_completer_terminator_character appropriately will fix the problem.
Download (untitled) / with headers
text/plain 174b
On Tue Sep 07 13:47:02 2010, CHM wrote: Show quoted text
> It looks like setting $rl_completer_terminator_character > appropriately will fix the problem.
In Devel/REPL/Plugin/Completion.pm
RT-Send-CC: ingosch [...] gmx.at
Download (untitled) / with headers
text/plain 730b
I looked into this further and the problem appears to be in the Term::ReadLine::Perl completion code and not any Devel::REPL specific functionality. For example, it works as desired with PERL_RL=Gnu re.pl and gives the undesired performance with PERL_RL=Perl re.pl I'm opening a bug report in the Term::ReadLine::Perl tracker but leaving this one open for the moment as I'm not sure of the best way to link to the new reports and keeping this ticket may be of use to other Devel::REPL users. On Tue Sep 07 13:52:08 2010, CHM wrote: Show quoted text
> On Tue Sep 07 13:47:02 2010, CHM wrote:
> > It looks like setting $rl_completer_terminator_character > > appropriately will fix the problem.
> > In Devel/REPL/Plugin/Completion.pm >
RT-Send-CC: ingosch [...] gmx.at
Download (untitled) / with headers
text/plain 164b
I've updated the Term::ReadLine::Perl ticket with the fix I found, see http://rt.cpan.org/Ticket/Display.html?id=61483 for the change to readline.pm required.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.