Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-17226

/etc/csh.login does not source /etc/profile.d/csh.local

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-8.8.0, rhel-8.9.0.z, rhel-9.2.0, rhel-9.3.0.z
    • setup
    • None
    • setup-2.13.7-10.el9
    • None
    • None
    • rhel-stacks-services-scripting
    • ssg_core_services
    • 25
    • None
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • All
    • None

      What were you trying to do that didn't work?

      /etc/csh.login does not source /etc/profile.d/csh.local

      Please provide the package NVR for which bug is seen:

      • setup-2.12.2-9.el8.noarch
      • setup-2.13.7-9.el9.noarch

      How reproducible:

      Always.

      Steps to reproduce

      1. Add a user whose shell is /bin/csh
      2. Add a command to /etc/profile.d/csh.local, e.g.
        setenv HELLO "Hello World"
      1. Log in as the user added in step 1
      2. Test if the command added in step 2 is executed
        echo $HELLO

      Expected results

       

      Hello World 
      

      Actual results

      Nothing

      Additional information

      The problem happens because line 34 of /etc/csh.login contains this:

              foreach i ( /etc/profile.d/*.csh )

      but it should contain this, as in RHEL 7:

              foreach i ( /etc/profile.d/*.csh /etc/profile.d/csh.local )

              rhn-support-mosvald Martin Osvald
              rhn-support-casantos Carlos Santos
              Martin Osvald Martin Osvald
              Petr Dancak Petr Dancak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: