Bug 74770
Summary: | Trailing space required in set prompt lines | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Richard Troxel <rick> |
Component: | tcsh | Assignee: | Miloslav Trmač <mitr> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-19 16:02:45 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
Richard Troxel
2002-10-01 15:47:24 UTC
In the fragment in question: if ($?prompt) then if ($?tcsh) then set prompt='[%n@%m %c]$ ' else set prompt=\[`id -nu`@`hostname -s`\]\$\ endif endif The first space can be removed with no adverse effects. The second space is preceded by \; if you remove the space, it is backslash-newline and the line is concatenated with the following one, in effect becoming if ($?prompt) then if ($?tcsh) then set prompt='[%n@%m %c]$ ' else set prompt=\[`id -nu`@`hostname -s`\]\$ endif endif which is indeed missing an endif. |