Incorrect expansion of '~' on Esc-Tab

Bug #661959 reported by Ben Okopnik
6
This bug affects 1 person
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 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.

Revision history for this message
Yury V. Zaytsev (zyv) wrote :

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.

Changed in mc (Ubuntu):
status: New → Incomplete
Revision history for this message
Ben Okopnik (ben-okopnik) wrote :

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!

Revision history for this message
Yury V. Zaytsev (zyv) wrote :

You didn't have to compile anything, I pointed you to the PPA where I rebuild the official Debian packages before they get into Ubuntu.

OK, closing as Fix Released.

Changed in mc (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.