Ticket #1494 (new enhancement)

Opened 15 years ago

Last modified 12 years ago

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

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."

Change History

comment:1 Changed 15 years ago by iNode

cd $somevar works for me (if somevar was defined before mc starts)
But I confirm other cases. Thanks for request.

comment:2 Changed 12 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases
Note: See TracTickets for help on using tickets.