nesh icon indicating copy to clipboard operation
nesh copied to clipboard

Is there a way to call exit on the nesh

Open cooolbasha opened this issue 11 years ago • 3 comments

Is there a way to call exit or stop on the nesh REPL

cooolbasha avatar Jul 16 '14 04:07 cooolbasha

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.

ccheever avatar Jul 16 '14 08:07 ccheever

using method just like start on the repl

cooolbasha avatar Jul 17 '14 11:07 cooolbasha

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.

ccheever avatar Jul 18 '14 20:07 ccheever