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