Incorrect expansion of '~' on Esc-Tab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mc
$ mc -V
GNU Midnight Commander 4.6.2
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish
With builtin Editor
Using system-installed S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationaliz
With multiple codepages support
Data types: char 8 int 32 long 32 void * 32 off_t 64 ecs_char 8
Background: 'mc' expands partially-typed command names and file/directory names on the command line when the 'Esc-Tab' combination is pressed (e.g., "ls /usr/local/
Problem: If the path to be expanded begins with "~", the expansion - both as a single entry or in the pick list - begins with '\~/', which is not the correct file/directory name for the specified string.
Unfortunately, I'm not much good at hacking C any more, but it seems as though the problem would be in src/utilunix.c , in the tilde_expand () subroutine.
How come you are using such an old version? I can't reproduce this on latest stable:
https:/ /launchpad. net/~zyv/ +archive/ ppa
Please tell if it fixes the issue.