# Script/console .irb\_history is messed up

**URL:** <https://www.ruby-forum.com/t/script-console-irb-history-is-messed-up/146499>\
**Category:** Rails\
**Created:** [August 21, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/script-console-irb-history-is-messed-up/146499 "2008-08-21T18:25:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quinn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/51bf81/32.png) [@quinn](https://www.ruby-forum.com/u/quinn)\
**Post date:** [August 21, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/script-console-irb-history-is-messed-up/146499/1 "2008-08-21T18:25:02Z")

</div>

for some reason when i exit script/console, even with an empty  
~/.irb\_history, it copies a bunch of commands i didn’t type into  
irb\_history. they are commands i typed, just not in that particular  
session, and not in a recent session. as far as my window manager can  
reveal to me i have no other open irb sessions. these are the exact  
steps which happen with the problem:

i truncate ~/.irb\_history by opening it in textmate and deleting the  
contents, save/close  
tail -f .irb\_history

go into my rails project, do:  
script/console

loads console, i type ‘exit’

when it exits the console, tail logs a hundred or so commands i typed  
in to console something like 3 days ago. i hope somebody can help, its  
breaking my irb history which is really frustrating and interrupts my  
workflow everytime i close and reopen script/console
