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

Ben Okopnik 661959 at bugs.launchpad.net
Sun Oct 17 00:19:27 UTC 2010


Public bug reported:

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.

** Affects: mc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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: New

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