Ticket #3486 (closed defect: invalid)
Subshell is not cleared when it already contains a command and active panel is changed
Reported by: | Klimontov | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
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
Note: See
TracTickets for help on using
tickets.