[Pkg-mc-devel] Bug#520029: mc: internal cd is very limited

Robert Luberda robert at debian.org
Mon Mar 16 22:15:07 UTC 2009

Package: mc
Version: 2:4.6.2-1
Severity: wishlist


The internal cd command is very limited. It doesn't support %
substitutions, doesn't expands variables nor output of external commands
It's impossible to do for example:
cd %D
cd TES* (if only one dir matches the wildcard)
cd `/bin/pwd`
cd somedir || echo fail

All of the above commands do work in any normal shell, but not in mc.
However after defining the follwing alias in bash
alias ccd='cd'
I can use `ccd %D', `ccd $VAR' etc. in mc. 

I wish this could be possible without the alias - either support for
such an advanced features could be added to mc, or mc could provide a
way to disable the internal cd in favour of the shell built-in one.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28vox
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/pdksh

Versions of packages mc depends on:
ii  libc6                         2.9-4      GNU C Library: Shared libraries
ii  libglib2.0-0                  2.18.4-2   The GLib library of C routines
ii  libgpm2                       1.20.4-3.1 General Purpose Mouse - shared lib
ii  libslang2                     2.1.3-3    The S-Lang programming library - r

mc recommends no packages.

Versions of packages mc suggests:
ii  arj                         3.10.22-6    archiver for .arj files
ii  bzip2                       1.0.5-1      high-quality block-sorting file co
ii  dbview                      1.0.4-1      View dBase III files
ii  file                        4.26-2       Determines file type using "magic"
ii  links                       2.2-1+b1     Web browser running in text mode
ii  lynx                        2.8.7dev13-1 Text-mode WWW Browser (transitiona
ii  mime-support                3.44-1       MIME files 'mime.types' & 'mailcap
pn  odt2txt                     <none>       (no description available)
ii  perl                        5.10.0-19    Larry Wall's Practical Extraction 
ii  unzip                       5.52-12      De-archiver for .zip files
ii  w3m                         0.5.2-2+b1   WWW browsable pager with excellent
pn  xpdf                        <none>       (no description available)
ii  zip                         2.32-1       Archiver for .zip files

-- no debconf information

More information about the Pkg-mc-devel mailing list