Starting interactive shell/irb from within a script?

Hello,
I was wondering if there exists a module that allows you to start an
interactive shell like irb from an arbritrary point in your script. The idea
is to first let a program run for a while to do processing and then start
the shell so I can check what the exact values of variables and contents of
hashes in memory are.
Irb does not seem to have a mode to (silently) run a script and then pass
control to the user so he can inspect things.

Regards,
Paul

Take a look at irb. It’s a very easy and small script.

dew:[~]$ egrep -cv ‘^ *#|^ *$’ which irb
10

···

Paul Melis paul@floorball.nl wrote:

I was wondering if there exists a module that allows you to start an
interactive shell like irb from an arbritrary point in your script. The idea