Bug 171945 - /etc/profile gives syntax error when using ksh as login shell
/etc/profile gives syntax error when using ksh as login shell
Status: CLOSED DUPLICATE of bug 160731
Product: Fedora
Classification: Fedora
Component: setup (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-10-27 20:04 EDT by ihateredhat
Modified: 2014-03-16 22:56 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-27 20:20:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description ihateredhat 2005-10-27 20:04:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7

Description of problem:
When logging into an FC4 machine when the default shell for the user is set to ksh(pdksh), this error results.

/etc/profile[17]: [: argument expected

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Set login shell to ksh
2. Log in


Actual Results:  /etc/profile[17]: [: argument expected

Expected Results:  no error

Additional info:

Fix line 17 of /etc/profile by adding quotes around $EUID

# Path manipulation
if [ $EUID = 0 ]; then
        pathmunge /sbin

Change to:
# Path manipulation
if [ "$EUID" = 0 ]; then
        pathmunge /sbin
Comment 1 Bill Nottingham 2005-10-27 20:20:42 EDT

*** This bug has been marked as a duplicate of 160731 ***

Note You need to log in before you can comment on or make changes to this bug.