Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc command line does not allow alias defines #2985

Open
mc-butler opened this issue Mar 18, 2013 · 3 comments
Open

mc command line does not allow alias defines #2985

mc-butler opened this issue Mar 18, 2013 · 3 comments
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.8.1.7 Reproducible in version 4.8.1.7

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2985
Reporter alexander.stohr2 (alexander.stohr@…-weuffen.de)
Keywords commandline, alias

in my ~/.bashrc i have a few alias lines, for example:

alias ll='ls -alF'

when entering "ll" on the mc command line the aliases are not used.
when entering the bash keyword "alias" it does react as if no aliases are defined.
but when closing mc the alias command will show all expected keys.
the same expected reaction takes place when launching bash from the mc command line and then executing the command in question.

maybe the interactive shell flag is missing when the command gets passed from mc to the execution context.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 19, 2013 at 4:18 UTC (comment 1)

Looks like your local misconfiguration. All my aliases work fine.

@mc-butler
Copy link
Author

Changed by alexander.stohr2 (alexander.stohr@…-weuffen.de) on Mar 19, 2013 at 10:23 UTC (comment 2)

my setup of mc is running in an xterm
that runing on top of icewm
that is running in a Xtightvnc environment
and on top of an Ubuntu 10.4 LTS install
on a quad core xeon alike server machine.

my only special observation on the shell is:
the ctrl-o sequence can only show old console contents
but does not allow to use the command line there.
it seems to me that terminal is not smart enough
in contrast to what e.g. a textmode console
or some GNOME/KDE session offers on their console implementations.

i am thinking of showing/hiding mc on the fly
and thus switching between a bash command line and mc command line

  • thats not possible in the problematic setup where the alias thing behaves wrong.

@mc-butler
Copy link
Author

Changed by stas (stas@….org) on Aug 5, 2018 at 22:18 UTC (comment 3)

I encountered the same problem and traced it down to -u flag, I had an alias set mc='mc -c -u' which worked in the past, but stopped to work now.

/bin/bash: l: command not found

removing -u from the alias fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.8.1.7 Reproducible in version 4.8.1.7
Development

No branches or pull requests

1 participant