From: Love U Ruby Date: 2013-02-14T04:45:54+09:00 Subject: Re: How to exit from the forever loop when using "-np" switch ? `-p` ==> assume loop like -n but print line also like sed. Now I tried below to see how it works : @ubuntu:~$ ruby -p hi \t -:5: syntax error, unexpected $undefined, expecting $end @ubuntu:~$ In the above after typing "hi", when I press 'ENTER' got ***blank line*** as above. I thought it would give a output as ***hi***. Now I tried it a bit different way : @ubuntu:~$ ruby -p -e '"hi"' hi hi ttt ttt \t \t But here it seems `-p` worked as expected. But the `Loop` falls into an infinite `Loop`. Can anyone help me to understand why these difference? -- Posted via http://www.ruby-forum.com/.