3
0

nommu3.tests 183 B

123456789101112131415
  1. #!/bin/sh
  2. func()
  3. {
  4. while read p; do echo "$p"; done
  5. }
  6. pipe_to_func()
  7. {
  8. # We had a NOMMU bug which caused "echo Ok |" part to be lost
  9. echo Ok | func
  10. }
  11. pipe_to_func | cat
  12. echo $?