Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#995169: mc: Subshell Ctrl+o stopped working with upgrade from 4.8.26-1.1 => 4.8.27-1

244 views
Skip to first unread message

Pavel Reznicek

unread,
Sep 27, 2021, 9:20:02 AM9/27/21
to
Package: mc
Version: 3:4.8.27-1
Severity: normal

Dear Maintainer,

since the recent update of Midnight Commander to version 4.8.27-1 the subshell, normally accessible by Ctrl+o, is not working anymore for ordinary user. In the bottom line a simple '$' prompt is shown instead of full shell prompt, and after pressing Ctrl+o one cannot type any command - any keystroke returns back to the normal double-panel view. The problem is not present when running 'mc' as root. Removing user mc-configuration files does not help.

Pavel

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (840, 'testing'), (740, 'unstable'), (738, 'experimental'), (540, 'proposed-updates'), (540, 'stable'), (500, 'stable-security'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-1-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mc depends on:
ii libc6 2.32-4
ii libext2fs2 1.46.4-1
ii libglib2.0-0 2.68.4-1
ii libgpm2 1.20.7-9
ii libslang2 2.3.2-5
ii libssh2-1 1.10.0-2
ii mc-data 3:4.8.27-1

Versions of packages mc recommends:
ii mime-support 3.66
ii perl 5.32.1-5
ii sensible-utils 0.0.17
ii unzip 6.0-26

Versions of packages mc suggests:
ii acroread [pdf-viewer] 9.5.5-dmo14
ii arj 3.10.22-24
ii atril [pdf-viewer] 1.24.0-1+b1
ii bzip2 1.0.8-4
ii catdvi 0.14-12.1+b1
ii dbview 1.0.4-4
ii djvulibre-bin 3.5.28-2
ii epub-utils 0.2.2-4+b4
ii evince [pdf-viewer] 40.4-2
ii file 1:5.39-3
ii genisoimage 9:1.1.11-3.2
ii gv [pdf-viewer] 1:3.7.4-2+b1
ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1.3
ii libaspell-dev 0.60.8-3
ii links 2.24-1
ii lynx 2.9.0dev.9-2
ii odt2txt 0.5-7
ii okular [pdf-viewer] 4:21.08.1-1+b1
ii poppler-utils 20.09.0-3.1
pn python <none>
pn python-boto <none>
ii python-tz 2020.4-1
ii texlive-binaries 2021.20210626.59705-1
ii unar 1.10.1-2+b6
ii w3m 0.5.3+git20210102-6
pn wimtools <none>
ii zip 3.0-12

-- Configuration Files:
/etc/mc/mc.ext changed [not included]

-- no debconf information

David Nebauer

unread,
Oct 4, 2021, 5:50:03 AM10/4/21
to
Package: mc
Version: 3:4.8.27-1
Followup-For: Bug #995169
X-Debbugs-Cc: davidn...@gmail.com

Dear Maintainer,

I have the same change in behaviour reported by Pavel Reznicek during
the upgrade to 4.8.27.

I have noted a further behaviour change that may assist in
troubleshooting: when executing commands from mc's command line in
4.8.26 I was able to use zsh functions defined in
~/.zsh/functions-{available,enabled}/. After upgrading to 4.8.27 using
any of these functions results in errors like:
zsh:1: command not found: FN_NAME

In preparing to file this bug report I became aware that it is possible
to provide mc with a custom .zshrc file at ~/.local/share/mc/. There is
no such file on my system (and never has been).

David

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (995, 'testing'), (750, 'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/12 CPU threads)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mc depends on:
ii libc6 2.32-4
ii libext2fs2 1.46.4-1
ii libglib2.0-0 2.70.0-1+b1
ii libgpm2 1.20.7-9
ii libslang2 2.3.2-5
ii libssh2-1 1.10.0-2
ii mc-data 3:4.8.27-1

Versions of packages mc recommends:
ii mime-support 3.66
ii perl 5.32.1-6
ii sensible-utils 0.0.17
ii unzip 6.0-26

Versions of packages mc suggests:
pn arj <none>
ii bzip2 1.0.8-4
pn dbview <none>
pn djvulibre-bin <none>
pn epub-utils <none>
ii evince [pdf-viewer] 40.4-2
ii file 1:5.39-3
ii genisoimage 9:1.1.11-3.2
pn gv <none>
ii imagemagick 8:6.9.11.60+dfsg-1.3
ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1.3
pn libaspell-dev <none>
pn odt2txt <none>
ii okular [pdf-viewer] 4:21.08.1-1+b1
ii poppler-utils 20.09.0-3.1
pn python-boto <none>
ii python-is-python2 [python] 2.7.18-9
pn python-tz <none>
ii texlive-binaries 2021.20210626.59705-1
ii unar 1.10.1-2+b6
ii w3m 0.5.3+git20210102-6
pn wimtools <none>
ii zip 3.0-12

-- no debconf information

Andreas Voigt

unread,
Jan 6, 2023, 12:50:03 PM1/6/23
to
--- mc-4.8.28.orig/src/subshell/common.c
+++ mc-4.8.28/src/subshell/common.c
@@ -749,7 +749,7 @@ feed_subshell (int how, gboolean fail_on
should_read_new_subshell_prompt = FALSE;
/* we wait up to 1 second if fail_on_error, forever otherwise */
- wtime.tv_sec = 1;
+ wtime.tv_sec = 10;
wtime.tv_usec = 0;
wptr = fail_on_error ? &wtime : NULL;

alternativly you could download my pachted source from
https://github.com/phil2sat/Midnight_Commander.git

and build it with "debuild -uc -us"

phil2sat
0 new messages