RedHat version is:
{{{#!sh
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.4 (Ootpa)
}}}
mc starts as alias for:
{{{#!sh
# alias | grep mc
alias mc='. /usr/libexec/mc/mc-wrapper.sh'
}}}
and file content is:
{{{#!sh
# cat /usr/libexec/mc/mc-wrapper.sh
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
/usr/bin/mc -P "$MC_PWD_FILE" "$@"
if test -r "$MC_PWD_FILE"; then
MC_PWD="`cat "$MC_PWD_FILE"`"
if test -n "$MC_PWD" && test -d "$MC_PWD"; then
cd "$MC_PWD"
fi
unset MC_PWD
fi
rm -f "$MC_PWD_FILE"
unset MC_PWD_FILE
unset MC_USER
}}}
When I start mc on host1 it start normally and I can use C-o combination
to go back to shell and use commands as usual.
But when I start mc on host2 I have a screen like this:
--
Ticket URL: <http://www.midnight-commander.org/ticket/4371>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center
* status: new => closed
* resolution: => wontfix
* milestone: Future Releases =>
Comment:
4.8.19 is 5-years old. Please file a bug to RH's bug tracker.
Recent mc version is 4.8.28. Please use it if possible.
--
Ticket URL: <http://www.midnight-commander.org/ticket/4371#comment:1>