Bug 620435
| Summary: | Please use printf instead of echo. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Roman Rakus <rrakus> |
| Component: | setup | Assignee: | Ondrej Vasik <ovasik> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | ovasik, pknirsch, tsmetana, zaitcev |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | setup-2.8.25-1.fc15 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 620408 | Environment: | |
| Last Closed: | 2010-08-13 12:37:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Roman Rakus
2010-08-02 14:09:17 UTC
Built as setup-2.8.25-1.fc15, closing RAWHIDE. See possible regression in bug 624900. I'm sorry. I should have noticed before: there's yet another problem with the change: There is a missing '$' before HOME... The PROMPT_COMMAND should look like this:
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
^^^^^^^
As for Pete's problem with screen: I don't think it's this change that caused it (tested on F-13 -- I put the new PROMPT_COMMAND definition in my ~/.bashrc using the Xfce terminal):
[tsmetana@zaphod ~]$ echo $TERM
screen
[tsmetana@zaphod ~]$ echo $PROMPT_COMMAND
printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"
[tsmetana@zaphod ~]$ pstree | grep screen
| `-sshd---sshd---bash---screen---screen---bash-+-grep
Regards.
Tomas - it was really problem caused by the change to printf - I did a typo there... this should be fixed in setup-2.8.26-1.fc15 ... You are right about the missing $ ... will fix that in next setup build ... |