CC: | ingosch [...] gmx.at |
Subject: | TAB completion for dir/filenames inserts extra space before done |
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.