Shell script – IFS read syntax error: unexpected redirection – Debian
I have this shell script #/bin/bash SUB_DOMAIN="test.google.com" IFS=. read -ra __ <<< "${SUB_DOMAIN}" IFS=. eval 'DOMAIN="${__[*]:(-2)}"' echo "${DOMAIN} - ${SUB_DOMAIN}" If I run it under Debian, everything works. But if I start it in a minimal Docker Linux (alpha), I…