Re: Expectations for subshell
"Yury V. Zaytsev via mc" <[email protected]> Sat, 20 Jan 2024 17:12:33 +0100 (CET)
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
Which shell you are using? Is it working properly if you are NOT toggling "quickly" whatever that means? The output of the command is not supposed to get lost, but it can disappear if something is interfering with alt mode, e.g. mc is running inside screen. We try to support sensible shell integration with most popular shells (bash, zsh) and at least not completely fail on less popular ones (tcsh, etc.), but sadly there isn't really a way to do a robust shell integration, unless we implement a terminal emulator ourselves. Unfortunately, this is not something we can even contemplate at the moment, so the best answer is to use the fragile pipe-and-alt shell integration knowing its limitations. On Sat, 20 Jan 2024, Nojus Gudinavièius via mc wrote: > Hello, > > Since the midnight-commander.org website seems to struggle to send me my > registration email, I'm writing here. > > mc version 4.8.30 > > If I execute in the subshell: > > sleep 1 && echo test > > And then quickly press <Ctrl-O> to return to the panel view, now I: > > 1. can't execute any commands from the inline prompt, as it complains > about the command already running, even after the 1 second has passed > 2. if I enter subshell again, any output of the running command that > was printed while subshell was hidden is lost (that is, I don't see > the echoed "test") > 3. when I enter subshell again, the directory that I've changed while > navigating in the panels is lost, and I'm put back into the original > directory the command was executed from. > > I'm not sure if these necessarily are bugs, but they worsen the overall > mc experience quite a bit. > > Regards, > > Nojus > -- > mc mailing list > [email protected] > https://lists.midnight-commander.org/mailman/listinfo/mc > -- Sincerely yours, Yury V. Zaytsev -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc