I'm in a NodeJS command-prompt session and I want to dip out to shell for a few commands and come back to my session with variables intact.
I remember doing this as a kid using "!" in another environment - can I do something like that in Node?
I'm in a NodeJS command-prompt session and I want to dip out to shell for a few commands and come back to my session with variables intact.
I remember doing this as a kid using "!" in another environment - can I do something like that in Node?
Copyright © 2021 Jogjafile Inc.
I just remembered about
Ctrl-z/fg.Ctrl-zmakes the Node session a background process and leaves me in the shell (and pauses it - if I wanted it to keep running something I could use thebgcommand). Thenfgputs me back into the Node environment.This is probably close enough to what I was thinking about.
I'm open to other options though!