Ticket #3486 (new defect)

Opened 4 years ago

Last modified 4 years ago

Subshell is not cleared when it already contains a command and active panel is changed

Reported by: Klimontov Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc: iav@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Originally from https://github.com/MidnightCommander/mc/issues/29 ; reproducer and patch in https://www.midnight-commander.org/ticket/3063#comment:4 :

  • Start mc
  • Select different directories in adjacent panels
  • Turn off the panels (CTRL+O)
  • Type a command
  • Turn on the panels (CTRL+O)
  • Change active panel (Tab)

As a result, directory change command is appended to the test in subshell and it is executed, resulting in garbage being run. Reporter suggests clearing subshell, see patch in the linked comment.

Change History

comment:1 Changed 4 years ago by iav

  • Cc iav@… added
Note: See TracTickets for help on using tickets.