bugGNU Octave - Bugs: bug #34624, Tab completion of multiple...


bug #34624: Tab completion of multiple directory levels is broken.

Submitted by:  None
Submitted on:  Sun 23 Oct 2011 12:31:39 AM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Brooks Moses Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.4.2
Operating System:  Other

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Mon 15 Feb 2016 01:39:22 AM UTC, comment #6: 

Although this pre-dates the bug #44095 report, that report has a more complete discussion, so I'm marking this as duplicate of it, instead of vice versa.

Lachlan Andrew <lachlan>
Sat 12 Sep 2015 09:16:35 PM UTC, comment #5: 

There is another patch attached to bug #44095 that has some things in common with this one. I think both patches could be combined to help resolve this long-standing feature request.

Mike Miller <mtmiller>
Project Administrator
Fri 25 Jul 2014 09:39:52 AM UTC, comment #4: 

This bug is still present in the latest development versions and release candidates (3.8.2-rc2).

D. Robinson's patch below seems to solve it. I attach to this comment a slightly modified patch that can be applied to recent revisions (files have been moved since then).

Is there a specific reason why this patch has not been considered since feb. 2012 ? This is a VERY annoying bug and I would be happy to help improving the patch if anybody could tell me what needs to be improved.

(file #31775)

Julien Bect <jbect>
Sun 26 Feb 2012 03:37:34 PM UTC, comment #3: 

It seems that readline is treating the path separator as a word break character when it does tab completion.  This is good for tab completion inside an arithmetic expression, but it's bad for filename completion.

In readline version 5 and later, there is a hook that allows you to set the word break characters when the user hits the TAB key.  I'm attaching a possible fix that sets the word break characters to only whitespace and quotes whenever the input line begins with the name of a directory function.

(file #25174)

Daniel Robinson <drobinso42>
Wed 26 Oct 2011 03:10:33 AM UTC, comment #2: 

This may also be related to the other reported tab completion bug #34444.

Rik <rik5>
Project Administrator
Sun 23 Oct 2011 02:03:42 AM UTC, comment #1: 

Confirmed. Tab completion has other problems that should also be addressed, but this doesn't seem like an easy problem.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Sun 23 Oct 2011 12:31:39 AM UTC, original submission:  

(Note: Operating system is Cygwin; this is the standard Cygwin distribution of Octave.)

Steps to reproduce:

  Create a directory tree: $pwd/foo/bar/.

  At the Octave command line in $pwd, type "cd f".

  Press tab; note that this completes to "cd foo/".

  Press tab again.

Expected result:

  Completion of the command line to "cd foo/bar/"

Actual result:

  Completion to "cd foo/foo/".  (Or, more generally, suggestion
  of "foo" and other items in $pwd.)

This can be repeated ad infinitum, tab-completing to "cd foo/foo/foo/foo/foo" and so forth.

In addition, tab completion for "cd" is providing all items in the current directory, not just subdirectories.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #25174:  tabcompletion.diff added by drobinso42 (8KiB - text/plain)


Carbon-Copy List
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jbect (Updated the item)
  • -email is unavailable- added by drobinso42 (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-22 mtmiller Open/ClosedOpen => Closed
    2016-02-15 lachlan StatusPatch Submitted => Duplicate
        Dependencies- => Depends on bugs #44095
    2015-12-22 mtmiller Dependencies- => bugs #46402 is dependent
    2015-09-12 mtmiller Dependencies- => bugs #42291 is dependent
    2014-07-25 jordigh StatusConfirmed => Patch Submitted
    2014-07-25 jbect Attached File- => Added tabCompletion_DRobinson.patch, #31775
    2014-06-16 mtmiller Dependencies- => bugs #42570 is dependent
    2012-02-26 drobinso42 Attached File- => Added tabcompletion.diff, #25174
    2011-10-26 rik5 Dependencies- => Depends on bugs #34444
    2011-10-23 jordigh StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.7