# A minor bugfix to irb.rb irb 0.9(02/07/03)

**URL:** <https://rubytalk.org/t/a-minor-bugfix-to-irb-rb-irb-0-9-02-07-03/17990>\
**Category:** ruby-talk\
**Created:** [29 April 2005 03:49 UTC](https://rubytalk.org/t/a-minor-bugfix-to-irb-rb-irb-0-9-02-07-03/17990 "2005-04-29T03:49:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balwinder\_S\_bsd\_Dhee](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@Balwinder\_S\_bsd\_Dhee](https://rubytalk.org/u/Balwinder_S_bsd_Dhee)\
**Post date:** [29 April 2005 03:49 UTC](https://rubytalk.org/t/a-minor-bugfix-to-irb-rb-irb-0-9-02-07-03/17990/1 "2005-04-29T03:49:27Z")

</div>

Here is minor bugfix patch for irb version 0.9(02/07/03) contained in debian package vesion 1.8.2-5, \*fixes missing linefeed\* "\n" when exiting by pressing Ctrl-D i.e \C-d (^D).

-------- 8\< --------  
--- irb.rb.orig 2003-06-10 05:22:16.000000000 +0000  
+++ irb.rb 2005-04-29 02:14:53.261022103 +0000  
@@ -69,7 +69,6 @@  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(:IRB\_EXIT) do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb.eval\_input  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
-# print "\n"  
&nbsp;&nbsp;&nbsp;&nbsp;end

&nbsp;&nbsp;&nbsp;&nbsp;def IRB.irb\_exit(irb, ret)  
@@ -135,6 +134,8 @@  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if @context.verbose?  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf "Use \"exit\" to leave %s\n", @context.ap\_name  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
+ else  
+ print "\n"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l  
-------- 8\< --------

Hope that helps,

Regards,

> **···**
>
> --  
> Dr Balwinder Singh Dheeman Registered Linux User: #229709  
> CLLO (Chief Linux Learning Officer) Machines: #168573, 170593, 259192  
> Anu's Linux@HOME Distros: Ubuntu, Fedora, Knoppix  
> More: [http://anu.homelinux.net/~bsd/](http://anu.homelinux.net/~bsd/) Visit: [http://counter.li.org/](http://counter.li.org/)
