Ticket #1494 (new enhancement)
internal cd command is very limited
Reported by: | narcan | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | 4.7.0-pre1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Hello,
This is a Debian whislist bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520029
Thank you
Denis Briand
Robert Luberda wrote:
"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 $SOMEVAR
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."
cd $somevar works for me (if somevar was defined before mc starts)
But I confirm other cases. Thanks for request.