SETTE issues after 7f3d7e34
Context
- Branches impacted:
main
- Reference configuration/test case: N/A
- Computing architecture: Bash versions older than v4
- Dependencies: N/A
Analysis
There are two issues related to 7f3d7e34 (issue #95 (closed)):
-
The call to
./sette_rpt.sh ${NEMO_DEBUG}
insette.sh
does not seem to use environment variable values exported fromsette.sh
In my case, I had set the
-v
option when runningsette.sh
but${SETTE_SUB_VAL}
was not set withinsette_rpt.sh
, so no report was generated -
The
${CMP_NAM,,}
parameter expansion was introduced with Bash v4- it does not work with older Bash versions
Fix
-
Source
sette_rpt.sh
instead of calling it- ./sette_rpt.sh ${NEMO_DEBUG} + . ./sette_rpt.sh ${NEMO_DEBUG}
-
Use
tr
instead of parameter expansion- ${CMP_NAM,,} =~ ("debug"|"dbg") + CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]') + ${CMP_NAM_L} =~ ("debug"|"dbg")
Edited by Daley Calvert