Bug 160731
Summary: | /etc/profile has syntax error when used with korn shell (pdksh) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Scott Lurndal <scott> |
Component: | setup | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | anton, deknuydt, game29, rory.lampert, rvokal, sfalco |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.5.45-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-06-17 18:37:46 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
Scott Lurndal
2005-06-16 21:55:03 UTC
Alternatively, you could change this back to the version used in FC3 which invoked the 'id' command to determine the effective UID of the current process. Note that the backtick method of invoking commands from shell scripts has been deprecated for quite some time in favor of $(cmd). For example, instead of `id -u`, one should use $(id -u) in bourne/korn/bourneagain scripts. EUID is used becasue id is in /usr/bin. Fixed in CVS, will be in future builds. If someone (as I usually do) uses usermod(1m) to change the root shell from bash to ksh, then the PATH will not include the sbin directories on root logins. You cannot correctly rely on EUID in this case. # ksh workaround if [ -z "$EUID" -a -x /usr/bin/id ]; then EUID=`id -u` UID=`id -ru` fi added in 2.5.45-1. *** Bug 161433 has been marked as a duplicate of this bug. *** *** Bug 171861 has been marked as a duplicate of this bug. *** *** Bug 171945 has been marked as a duplicate of this bug. *** *** Bug 173784 has been marked as a duplicate of this bug. *** *** Bug 176265 has been marked as a duplicate of this bug. *** |