Bug 10913
Summary: | /etc/profile.d/lang.csh not working correctly | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | kazuki.kurose |
Component: | initscripts | Assignee: | David Lawrence <dkl> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-04-19 15:17:19 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
kazuki.kurose
2000-04-19 09:54:30 UTC
Hm, yes, the case statement was wrong. /proc/$$/fd does work in recent kernels, or are you talking about 2.3.99+? The issue is, tcsh's file descriptors seem to start at 15... Fixed in initscripts-5.10-1. The echo was redirected to /proc/$$/fd/0 which does not exist in the distributed kernel. /proc/$$/fd/ exist. However, maybe I'm wrong and the fact that 0 doesn't show to ls doesn't mean that it's not available for writing. Also, I think that -e option on the echo is not working (it is specified in the manual, but echo ignores it and echoes "-e") and I'm not sure if the redirects in the if statement enclosed within this case statement would work in tcsh. AFAIK in tcsh it is not possible to redirect stderr separatelly from stdout. /proc/$$/0 doesn't seem to exist under tcsh; the file descriptors start at 15, 16, 17, and so on. In the new initscripts package, we use /bin/echo and use the included 'consoletype' program to determine whether we're on a tty. You are right, however lang.csh runs under tcsh. ;-) Please consider updating that as an update to 6.2 because this causes a lot of confusion for users in Poland who tend to use ISO-8859-2 charsets/mappings. I have spoken with many people here who complained about not being able to make console behave correctly with ISO-8859-2 charset. People are even installing additional packages - like iso2console - to get their consoles to display their national chars correctly. And I was able to get everything to work just by correcting my lang.csh. Anyway - thank you for your time! |