I am trying to enter irb
from a shell script, do something, and then return to the shell script.
How can I do this?
#!/bin/bash
#example_app
# Some shell instructions here
irb
four = 2 + 2
exit
echo "This text is not reached and the process hangs open"
NOTE: I should not try to load irb to enter static code, I agree with you guys. I didn't think about what I was doing. I was interacting with an AWS library and I tried to carry that same philosophy into automating this without thinking twice about it.