I can't start mc

I can't start mc after it installed from ports
root :/usr/ports/misc/mc # mc
Common.c : unimplemented subshell type 1
ready (subshell_pty...) :No such file or directory (2)
 
pkg info -D mc
Code:
mc-4.8.32:
On install:
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.

  $ env SHELL=/bin/sh mc
  common.c: unimplemented subshell type 1
  read (subshell_pty...): No such file or directory (2)

Please either use more advanced interactive shell, or start mc(1) with -u
(--nosubshell) switch if you're confined to /bin/sh for some reason.
 
.......
Please either use more advanced intractive shell or start mc with -u switch If you're confined to /bin/sh fore some reason.
 
-u option disables sub-shell and MC does not work with sh without -u option.
i would work if your root shell was bash/zsh and some others.
P.s. would not adive to change root shell. just always use -u option if using root.
 
Back
Top