can't read user input with curl pipe bash