Bash environment variables errors detected during startup

Hello.
For a very long time I got an error in journald coming from startplasma-x11 during startup.
This error arise after :

Dec 25 15:54:59 15-4—G731GV-VM-04 sddm-helper[1509]: pam_unix(sddm:session): session opened for user user_install_vb by (uid=0)
Dec 25 15:54:59 15-4—G731GV-VM-04 sddm-helper[1509]: Starting: “/etc/X11/xdm/Xsession "/usr/bin/startplasma-x11"”
Dec 25 15:54:59 15-4—G731GV-VM-04 sddm-helper[1520]: Adding cookie to “/run/user/1000/xauth_mWBUUj”

These errors concern configuration files of mine copied in ‘/etcprofile.d’
One file contains bash function definition.
One example :

++++++++++++++++++++++++++++++++++++++++++++

abort_because_test

++++++++++++++++++++++++++++++++++++++++++++

function abort_because_test () {

local L_LINENO=" "
local L_MESG=" "

if [[ $# -gt 0 ]] ; then
L_LINENO=“$1”
if [[ $# -gt 1 ]] ; then
L_MESG=“$2”
fi
fi

echo
printf  "%s\n" "${MY_LIGHT_PURPLE}! # ! # ! # ! # ! # ! # ! # ! # ! # !"
printf  "%s\n" "!"
printf  "%s\n" "!   LINENO : $L_LINENO"
printf  "%s\n" "!"
printf  "%s\n" "!   MESG   : $L_MESG"
printf  "%s\n" "!"
printf  "%s\n" "!   ABORT BECAUSE TEST"
printf  "%s\n" "!"
printf  "%s\n" "! # ! # ! # ! # ! # ! # ! # ! # ! # !${NOCOLOR}"
echo

exit ${E_TEST_ABORT:-251}

}

export -f abort_because_test

One other file contains variables value definition.
One example :

declare -i MY_DEBUG=0 INIT_TITLE=0 FLAG_NOT_EXIST=0 FLAG_EXIST=0 PRE_TASK=0 POST_TASK=0 DO_BACKUP=0 DO_BACKUP_PREVIOUS=0 MODE_TEST=0 USE_LOG=0 MODE_VERBOSE=0 MODE_VERBOSE_ETC_FILE=0
export MY_DEBUG INIT_TITLE FLAG_NOT_EXIST FLAG_EXIST PRE_TASK POST_TASK DO_BACKUP DO_BACKUP_PREVIOUS MODE_TEST USE_LOG MODE_VERBOSE MODE_VERBOSE_ETC_FILE

declare -i MIN_NB_BASH_FUNC=75
export MIN_NB_BASH_FUNC

echo in color

Black 0;30 Dark Gray 1;30

Red 0;31 Light Red 1;31

Green 0;32 Light Green 1;32

Brown/Orange 0;33 Yellow 1;33

Blue 0;34 Light Blue 1;34

Purple 0;35 Light Purple 1;35

Cyan 0;36 Light Cyan 1;36

Light Gray 0;37 White 1;37

MY_BLACK=$‘\e[0m’ # No Color #Black 0;30
MY_DARK_GREY=$‘\e[1;30m’ # Dark Gray 1;30
MY_LIGHT_GREY=$‘\e[0;37m’ # Light Gray 0;37
MY_RED=$‘\e[0;31m’ # Red 0;31
MY_LIGHT_RED=$‘\e[1;31m’ # Light Red 1;31
MY_GREEN=$‘\e[0;32m’ # Green 0;32
MY_LIGHT_GREEN=$‘\e[1;32m’ # Light Green 1;32
MY_BROWN=$‘\e[0;33m’ # Brown/Orange 0;33
MY_YELLOW=$‘\e[1;33m’ # Yellow 1;33
MY_BLUE=$‘\e[0;34m’ # Blue 0;34
MY_LIGHT_BLUE=$‘\e[1;34m’ # Light Blue 1;34
MY_PURPLE=$‘\e[0;35m’ # Purple 0;35
MY_LIGHT_PURPLE=$‘\e[1;35m’ # Light Purple 1;35
MY_CYAN=$‘\e[0;36m’ # Cyan 0;36
MY_LIGHT_CYAN=$‘\e[1;36m’ # Light Cyan 1;36
MY_WHITE=$‘\e[1;37m’ # White 1;37
MY_BLINK=$‘\e[5m’
NOCOLOR=$‘\e[0m’

export MY_BLACK MY_DARK_GREY MY_LIGHT_GREY MY_RED MY_LIGHT_RED MY_GREEN MY_LIGHT_GREEN MY_BROWN MY_YELLOW MY_BLUE MY_LIGHT_BLUE MY_PURPLE MY_LIGHT_PURPLE MY_CYAN MY_LIGHT_CYAN MY_WHITE MY_BLINK NOCOLOR

It seems that the variables are parsed twice by the same process : 1520 belonging to startplasma-x11

I use these configuration files for years.
It seems that the problem appear with 15.4 ( perhaps also with 15.3 ) and is also present in 15.5.

That does not perturb execution of my scripts.

See : journald startplasma-x11 error

You have about 6 days of support left for Leap 15.4.
Upgrade to supported distribution.

Nice try but it doesn’t work.

Same problem with 15.5