mc subshell support

According to installation info:

Midnight Commander was built with subshell support, which works with most
popular shells, e.g. bash(1), dash(1), tcsh(1), zsh(1), but not sh(1) due
to its lack of "precmd" or equivalent hooks which mc(1) needs to read the
subshell's current directory.

Does this actually apply to tcsh?
 
Well to prevent messing up history I have this (conditional on mc being installed on the system and only in interactive mode):
Code:
if ($?MC_SID) then
    unset savehist
    alias exit "echo 'You are in a Midnight Commander sub-shell, no way out'"
endif
This works for normal users, not for root, well, sometimes yes and sometimes no.
 
Via ports you can also have MC without subshell support; On computers where I cannot use ports I set an alias for "mc" → "mc -u" and "mcedit" → "mcedit -u".
 
Back
Top