From: Tom Pollard Date: 2006-10-05T22:25:36+09:00 Subject: Re: Suppress result output in irb? On Oct 5, 2006, at 2:44 AM, Joel VanderWerf wrote: > Tom Pollard wrote: >> Hi, >> Is there a way to prevent irb from printing the result of a >> expression to the terminal on a command-by-command basis? I'm >> trying to use irb and soap4r to play around with a SOAP server and >> in many cases the results are fairly long arrays; I'd like to be >> able to prevent these from being displayed automatically. >> IPython, for example, will suppress the output from a command if >> it's terminated with a semicolon (';'). I was hoping for >> something similar in irb. > > irb(main):002:0> "q"*1000; 0 > => 0 Thanks. (I feel silly for not having thought of that last night.) It's much better than nothing. But, is there a good reason why irb itself couldn't suppress the display of the results when you gave it a command with a trailing semicolon? I don't see how that would break anything. Tom