Bug 1183733
| Summary: | Weird "<mock-chroot>sh-4.3#" prompt | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> |
| Component: | mock | Assignee: | Clark Williams <williams> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | jdisnard, mebrown, Mikhail_Campos-Guadamuz, msimacek, msuchy, praiskup, sergio, williams |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-04 11:28:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Vít Ondruch
2015-01-19 15:59:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. The prompt is still weird ... Can we close this as DUPLICATE for bug 1215792? (In reply to Pavel Raiskup from comment #4) Well my concerns were more about the specific format of the prompt, which changed with the mock-1.2.4, so I don't think these are duplicates. What are the real pros of having it re-implemented? I don't think that mock should care of it at all. This is related to 'user's workflow' inside the buildroot but not to the mock itself (--shell or whatever). This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'. I fixed this with add these to /etc/mock/site-defaults.cfg config_opts['environment']['PROMPT_COMMAND'] = r'printf "\033]0;<mock-chroot>\007"' config_opts['environment']['PS1'] = r'<mock-chroot> \s-\v\$ ' or is fixed on mock-1.2.21-1.fc23.noarch , r'something' means one raw string so we don't need double escape \s and \v . I used r'' syntax in commit * ccf4d12 simplify PROMPT_COMMAND string The '\s-\v\' *is* default for bash' PS1. So we just copy here. It is really up to you what you will use there. Thou I added more examples in commit: * 6839fd5 (HEAD -> devel) more examples of PS1 [RHBZ#1183733] The only remaining issue is that: mock shell su - mockbuild will give you different shell. But that cannot be changed without alternation of bashrc, and I really hesitate to do that. |