When mc has been compiled with subshell support, and started in the Bourne
shell, it fails to start with the following error message
{{{
common.c: unimplemented subshell type 1
read (subshell_pty...): No error: 0 (0)
}}}
Note that this error message occurs when mc starts - not afterwards when
trying to view the subshell with ctrl+o.
The FreeBSD bug for this is
[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208391 PR 208391]
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center
Comment (by woodsb02):
The attached patch allows mc to start without error. However, there is a 5
second delay when it starts. When trying to use the subshell, it simply
shows a blank terminal, at which point any key press returns you to the
normal mc file layout screen.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:1>
Comment (by and):
Confirm on Solaris Bourne shell.
But subshell will never work on sh because precmd() comparable feature
(for signaling current PWD back to mc) is missing.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:2>
Comment (by andrew_b):
Ticket #3689 has been marked as a duplicate of this ticket.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:3>
Comment (by sierkb):
Confirm on macOS 10.12.0 (Sierra).
See also [https://www.macports.org/ MacPorts] ticket
[https://trac.macports.org/ticket/52511 #52511 – mc: subshell not working
with /bin/sh] incl. comments.
Please fix and release. And please target for next possible release or bug
fix release instead for any undefined future release, so that patches
relating this issue can take effect as soon as possible on the user's
side.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:5>
Comment (by zaytsev):
Fix and release what? Do you know of a way to support Bourne shell?
Otherwise, if you want to use Bourne shell, you have to start mc without
subshell. I can't see what can be done here...
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:6>
Comment (by willbproggin):
Replying to [comment:6 zaytsev]:
> Fix and release what? Do you know of a way to support Bourne shell?
Otherwise, if you want to use Bourne shell, you have to start mc without
subshell. I can't see what can be done here...
This affects me [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208391
on FreeBSD] as well. Can mc be fixed to just start internally without
subshell support if it can't support a shell instead of failing
ungracefully?
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:7>
* status: new => closed
* resolution: => duplicate
* milestone: Future Releases =>
Comment:
Closed as duplicate of #373.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3658#comment:8>