I want to use IRB to run a script then give me an interactive prompt. I do this with python -i xy.py
in Python, however irb xy.rb
exits after execution.
> python --help
-i When a script is passed as first argument or the -c option is
used, enter interactive mode after executing the script or the
command
-r
orrequire
will not give you access to the local variables of the script, even if they are defined at the top-level execution environment. – Hurley