From 3f833fcabd43af4a22c63c0e9f070e001748e5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Mon, 11 May 2026 01:56:31 -0300 Subject: [PATCH] Fix csh syntax error in /etc/profile.d/xcat.csh The PERL5LIB conditional block added in commit 3cc4a39c8 used bash if-then-fi syntax instead of csh if-then-endif syntax, causing "Illegal variable name" errors for tcsh/csh users logging into the xCAT manager node. Fixes: #7379 --- xCAT-client/xCAT-client.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index ecd48f27f..b35349324 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -343,9 +343,9 @@ endif setenv PERL_BADLANG 0 # If /usr/local/share/perl5 is not already in @INC, add it to PERL5LIB perl -e "print \"@INC\"" | grep -E "(^|\W)/usr/local/share/perl5($| )" > /dev/null -if [ \$? = 1 ]; then +if ( \$? == 1 ) then setenv PERL5LIB /usr/local/share/perl5:\${PERL5LIB} -fi +endif EOF chmod 755 /etc/profile.d/xcat.*