The script attempts to use echo to print escape sequences, but echo does not reliably expand escape sequences across different environments. To fix, use printf for consistent escape sequence handling.
1
2# Noncompliant: `echo` doesn't interpret `\n` as a newline, resulting in literal output of `\n`.
3echo "First line\nSecond line"1
2# Compliant: `printf` interprets `\n` as a newline, properly formatting the output.
3printf "First line\nSecond line\n"