Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2015 16:49:59 +0000
From:      Ben Woods <woodsb02@gmail.com>
To:        lazan@protys.cz
Cc:        ports@freebsd.org
Subject:   Re: FreeBSD Port: mc-4.8.14
Message-ID:  <CAOc73CAS37rAg1Z=19=2ByPpET3f3HZnaAJD820OTXjygVWmCQ@mail.gmail.com>
In-Reply-To: <002601d068a9$e89ed730$b9dc8590$@protys.cz>
References:  <002601d068a9$e89ed730$b9dc8590$@protys.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Jiri,

I am having difficulty replicating this fault, however it is no doubt
linked to the change made in 4.8.14 under MC bug report #2027. See here:
http://www.midnight-commander.org/ticket/2027

Have you set a custom bash prompt in a .bashrc or .bash_profile or
/etc/profile? If so, what have you set so that I can try and replicate this
issue?

Thanks,
Ben


On Sat, Mar 28, 2015 at 12:20 AM Jiri Lazansky <lazan@protys.cz> wrote:

> Dear maintainer:
>
> I tried to upgrade well working mc-4.8.13_3 to mc-4.8.14 on FreeBSD 9.3
> (AMD64) with subshell using the port misc/mc. My shell is 'bash'.
>
> The result was:
>
> 1. Very long start-up time
> 2. Subshell not working (has not read ~/.bashrc).
>
> Following patch resolved the situation:
>
> ==========================
> --- src/subshell.c.orig
> +++ src/subshell.c
> @@ -874,8 +874,7 @@
>      {
>      case BASH:
>          g_snprintf (precmd, sizeof (precmd),
> -                    " PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND;
> }'pwd>&%d;kill -STOP $$'\n",
> -                    subshell_pipe[WRITE]);
> +                    " PROMPT_COMMAND='pwd>&%d;kill -STOP $$'\n",
> subshell_pipe[WRITE]);
>          break;
>
>      case ZSH:
> ===========================
>
> The output of 'mc -V' is
>
> GNU Midnight Commander 4.8.14
> Built with GLib 2.42.2
> Using the S-Lang library with terminfo database
> With builtin Editor
> With subshell support as default
> With support for background operations
> With mouse support on xterm
> With support for X11 events
> With internationalization support
> With multiple codepages support
> Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
> Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
>
> Please analyse the reasons and try to update the port.
>
> Best regards
>
> Jiri Lazansky
> <mailto:lazan@protys.cz>
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CAS37rAg1Z=19=2ByPpET3f3HZnaAJD820OTXjygVWmCQ>