read_n.tests 135 B

123
  1. echo 'test' | (read reply; echo "$reply")
  2. echo 'test' | (read -n 3 reply; echo "$reply")
  3. echo 'test' | (read -n3 reply; echo "$reply")