From: "David A. Black" Date: 2008-12-15T21:32:13+09:00 Subject: [ruby-core:20571] Re: ruby -p behavior in 1.9 Hi -- On Mon, 15 Dec 2008, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [ruby-core:20550] ruby -p behavior in 1.9" > on Sun, 14 Dec 2008 22:44:26 +0900, "David A. Black" writes: > > |Is this expected/correct behavior for 1.9? (Today's SVN head.) > > Right. I reduced magical behavior in 1.9. > > But to tell the truth, I now feel that it might be better to have > these behavior again when auto looping options (-p/-n) specified. I think it would be better. If -p and -n are too complicated, they lose their value. > In message "Re: [ruby-core:20569] Re: ruby -p behavior in 1.9" > on Mon, 15 Dec 2008 21:11:47 +0900, "David A. Black" writes: > > |Bump. Sorry; I don't usually do this, but not sure what to put in book > |about this one so am escalating. > > You don't have to mention these in the book. It's a special > trick for one-liners anyway. I'm covering a number of frequently-used commandline arguments to the ruby command, and -p is definitely one of the ones I use the most. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)