Apparently read don't like pipes. The explanation was beyond my understanding but this works

var=$(command)

Reply via email to