"/etc/profile[68]: .: line xxx: declare: not found" error message displaying when logging in as a ksh user
Issue
-
When logging into the system as a user having ksh as its shell, the following error message is seen
/etc/profile[68]: .: line 731: declare: not found
Line number (here above 731) may vary.
Environment
- Red Hat Enterprise Linux 8 and later
- ksh
- OpenSCAP security profiles CIS, STIG, ANSSI NT28 or BP28
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.