read p; while ! [ -z $p ] ; do echo P; read p done