Use read -r instead of $(cat ...) to avoid forking. (@zendeavor)