hush/shell/ash_test/ash-read/read_n.tests

4 lines
135 B
Plaintext
Raw Normal View History

echo 'test' | (read reply; echo "$reply")
echo 'test' | (read -n 3 reply; echo "$reply")
echo 'test' | (read -n3 reply; echo "$reply")