3
0

read_REPLY.tests 282 B

12345
  1. echo ' \abc1 d\ef ' | ( read ; echo "test 1: |$REPLY|" )
  2. echo ' \abc2 d\ef ' | ( read -r ; echo "test 2: |$REPLY|" )
  3. echo ' \abc3 d\ef ' | ( read REPLY; echo "test 3: |$REPLY|" )
  4. echo ' \abc4 d\ef ' | ( read -r REPLY; echo "test 4: |$REPLY|" )
  5. echo Done