X Tutup
Skip to content

Filename expansion: Directory names with '.'s get mangled #61

@ikanobori

Description

@ikanobori

Platform: Mac OS 10.6, Python 2.6.1

I think I might have found a bug with the display of possible completions of directory names. On my Mac, if I type

>>> a="/Applications/

and press tab to expand, the window list of completions is broken (but the completions displayed on the command line are correct as you cycle through with tab):

>>> a="/Applications/Address Book.app/
┌──────────────────────────────────────────────────────────────┐
│app/                       /Applications/AppleScript/         │
│app/                       app/                               │
│app/                       app/                               │
│app/                       /Applications/DivX/                │
│app/                       app/                               │
│app/                       app/                               │
│app/                       app/                               │
│/Applications/Games/       app/                               │
│/Applications/Google/      app/                               │
│app/                       app/                               │
│app/                       app/                               │
│app/                       app/                               │
│app/                       app/                               │
│/Applications/MacPorts/    app/                               │
│/Applications/Parallels/   app/                               │
│app/                       app/                               │
│app/                       app/                               │
│app/                       app/                               │
│app/                       app/                               │
│/Applications/Utilities/   app/                               │
└──────────────────────────────────────────────────────────────┘

(i.e., it's stripped all the completions that finish with .app/ to app/)

I shall have a look at the code myself, and see if I can propose a patch to fix this.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup