OSX homebrew: MidnightCommander not working as root

Problem

bash-3.2$root# mc
common.c: unimplemented subshell type 1
read (subshell_pty...): No such file or directory (2)

solution – install newest bash

user$ brew update 
user$ brew upgrade 
user$ brew install bash 
user$ /usr/local/opt/bash/bin/bash 
user$ sudo bash -c 'echo /usr/local/opt/bash/bin/bash >> /etc/shells' 
user$ chsh -s /usr/local/opt/bash/bin/bash 
user$ sudo chsh -s /usr/local/opt/bash/bin/bash

3 Gedanken zu „OSX homebrew: MidnightCommander not working as root

  1. Thank you for posting, it leads me to the right track 🙂 It seems that is not necessary to use brews bash. A simple sudo chsh -s /bin/bash did it for me. By default root has at least in Monterey sh as default shell, which does not work with mc.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.