Ticket #4625 (new defect)

Opened 37 hours ago

Last modified 100 minutes ago

mc 4.8.32 slow start on MacOS

Reported by: emkaroly Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: 4.8.32
Keywords: macOS slow sub shell Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

I am using mc on linux(ubuntu 22.04) and also on macOS(Sonoma 14.Sequoia 15) on MacOS the start takes several seconds on linux it works fine and start instantly. If I use the "-u"flag on macOS it also start instantly.
The default shell in macOS is zsh if I switch to bash it also start instantly. I don't have any custom bash nor zsh profiles its a fresh new OS installation. The machine is a M4 Pro MacBook? Pro 14 with 48GB RAM and 1TB SSD. Behavior is same in default Terminal app and iTerm also.
Also when i do sudo mc I get this error:
common.c: unimplemented subshell type 1
read (subshell_pty...): No such file or directory (2)

Change History

comment:1 Changed 37 hours ago by emkaroly

I also tried to remove these files without any change:
/etc/zprofile
/etc/profile
/etc/bashrc
/etc/bashrc_Apple_Terminal
/etc/zshrc
/etc/zshrc_Apple_Terminal

comment:2 Changed 100 minutes ago by zaytsev

Maybe related to #4253. Similar issue on FreeBSD with bash - #4548.

I also do have a couple of seconds startup on macOS with zsh, but it doesn't feel critical to me and can't find time to investigate...

Note: See TracTickets for help on using tickets.