use bash instead of sh for the read command