Skip to content

Mc start up is slow on FreeBSD with Bash shell when mc is using a subshell #4548

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4548
Reporter tonythed1111 (tony@….com)
Mentions maverick.woo@….com

Mc start up is slow on FreeBSD systems when running a Bash shell and the mc subshell feature is in use. There is an annoying delay of about 1 to 2 seconds during start up of the mc program. This occurs on any FreeBSD version that I have used when running bash as my login shell. The delay does not occur on any Linux system that I have used, it only happens on the FreeBSD systems. On FreeBSD when mc is started as 'mc -u' with no subshell the program starts almost instantly and is the expected behavior. When mc is started as 'mc' which does have a subshell, there is an annoying 1 to 2 second delay before it starts up.

What steps will reproduce the problem?

  1. On any FreeBSD operating system set your login shell to use Bash (any bash version).
  1. On the console or xterm, run 'mc'.
  1. You will observe a 1 to 2 second annoying delay before the program starts up.
  1. Now run 'mc -u'.
  1. You will observe an almost instant start up, which is the expected behavior for mc.
  1. The inclusion of a subshell causes the annoying delay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues not related to a specific subsystemprio: mediumHas the potential to affect progress

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions