nesh
nesh copied to clipboard
Is there a way to call exit on the nesh
Is there a way to call exit or stop on the nesh REPL
You can use the special command .exit
ccheever@Charless-MacBook-Air:~$nesh -cf
CoffeeScript 1.7.1 on Node v0.10.28 with fibrous undefined
Type .help for more information
fibrous-coffee> .exit
ccheever@Charless-MacBook-Air:~$
Type .help to see all the special commands you can use.
On most *nix platforms Ctrl-D will also work.
using method just like start on the repl
The .exit command in the coffee-script REPL (which nesh is built on top of) just does process.exit() which will terminate your program, not just the REPL, but that may be what you want.