RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 857019 - tcsh does not init environment when run with command from su
Summary: tcsh does not init environment when run with command from su
Keywords:
Status: CLOSED DUPLICATE of bug 847102
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tcsh
Version: 6.3
Hardware: i386
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Roman Kollár
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-13 11:58 UTC by Tomas Dolezal
Modified: 2013-04-30 22:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-13 13:11:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Dolezal 2012-09-13 11:58:28 UTC
Description of problem:
tcsh does not set proper environment defined in /etc/profile.d/*.csh if run with `su -c`.

Version-Release number of selected component (if applicable):
tcsh-6.17-19.el6_2.i686

How reproducible:
always on i386

Steps to Reproduce:
1. prepare
cat >/etc/profile.d/tcsh-test.csh <<EOF
setenv TESTVAR content
EOF
2. test
su -l -s /bin/csh -c 'echo $TESTVAR'
  
Actual results:
shell returns:
"TESTVAR: Undefined variable."

Expected results:
shell returns:
"content"

Additional info:
note that `echo 'echo $TESTVAR' | su -l -s /bin/csh` or just switching to csh login shell does set the environment properly

Comment 2 Roman Kollár 2012-09-13 13:11:10 UTC

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


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