Bug 244025

Summary: subshell displays wrong prompt
Product: [Fedora] Fedora Reporter: David Kovalsky <dkovalsk>
Component: mcAssignee: Jindrich Novy <jnovy>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: benl, leonard-rh-bugzilla, pknirsch, tmraz, triage
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: mc-4.6.1a-50.20070604cvs.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-14 14:23:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
Patch to fix both of the noted issues. none

Description David Kovalsky 2007-06-13 13:17:25 UTC
Description of problem:
Bug 1:
1. Have a mc running where you have two different directories
   in each panel.
2. Tab, so that you are in the other panel.
3. Ctrl-O to go to subshell.
4. You see two different prompts printed next to each other.

Bug 2:
1. Have a mc running where you have two different directories
   in each panel.
2. Tab, so that you are in the other panel.
3. Tab, so that you are back.
4. Ctrl-O to go to subshell.
5. You see two same prompts printed next to each other ->
   no prompt printing is desired in this case.

Similar problem:
1. have PS1 set to
PS1='\[\033[01;31m\]\H\[\033[00m\]:\[\033[00;01m\]\w\n\033[01;34m\]\$ \[\033[00m\]'
2. run mc
3. CTRL+O to subshell
kovinek:~        [OK, colors right]
# mc             [OK, colors right]
#                [extra line, terminal color]

Similar in FC6:
kovinek:~        [OK, colors right]
# mc             [OK, colors right]
#                [extra line, the right color (as above)]
In this case it doesn't matter if you have same directories or different in the

Version-Release number of selected component (if applicable):

How reproducible:

Comment 1 David Kovalsky 2007-06-13 13:20:34 UTC
Also RHEL5 has the same bahaviour as FC6.

Comment 2 Jindrich Novy 2007-06-13 15:36:32 UTC
The patch to fix the two bugs listed on top of this bugreport are already fixed
in rawhide. The discussion related to multilined and colorized prompt goes on
upstream. I'll release updates after a final solution is found.

Comment 3 Jindrich Novy 2007-06-20 14:32:31 UTC
Created attachment 157468 [details]
Patch to fix both of the noted issues.

Comment 4 Jindrich Novy 2007-06-20 15:32:34 UTC
It's now applied in rawhide.

Comment 5 Bug Zapper 2008-05-14 13:03:18 UTC
This message is a reminder that Fedora 7 is nearing the end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 7. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '7'.

Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 7's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 7 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug. If you are unable to change the version, please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. If possible, it is recommended that you try the newest available Fedora distribution to see if your bug still exists.

Please read the Release Notes for the newest Fedora distribution to make sure it will meet your needs:

The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 David Kovalsky 2008-05-14 14:23:38 UTC
Tested on F8, mc-4.6.1a-50.20070604cvs.fc8, i386 - I wasn't able to reproduce
any of those issues, so with regards to comment #4 I'm closing this bug.