[Pkg-mc-devel] [Bug 661959] Re: Incorrect expansion of '~' on Esc-Tab

Ben Okopnik 661959 at bugs.launchpad.net
Mon Oct 18 03:01:49 UTC 2010


That's what's available in Ubuntu 9.10 ('apt-get install mc' tells me
that I've got the latest version.) I've downloaded and compiled the
latest stable, and you're right - it's gone. The standard version in
Ubuntu should be handled, though.

Thanks for your help!

-- 
Incorrect expansion of '~' on Esc-Tab
https://bugs.launchpad.net/bugs/661959
You received this bug notification because you are a member of Debian MC
Packaging Group, which is subscribed to mc in ubuntu.

Status in “mc” package in Ubuntu: Incomplete

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 internationalization support
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/b<Esc><Tab>" either expands to a matching file or directory in /usr/local if there's only a single possible match, or shows a pick list of all matching files/directories.)

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.





More information about the Pkg-mc-devel mailing list