X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=engine.cpp;h=e251f0031d5ffa2bc9685702ef76ae0489af8449;hb=16bea3130e36addc54e2116dfbcd02d706ebee45;hp=1ca98b021214e624215ec897a549e0f14ed47ca3;hpb=1b2517db06f3c6cd5f5c67198261361ce8dad611;p=mothur.git diff --git a/engine.cpp b/engine.cpp index 1ca98b0..e251f00 100644 --- a/engine.cpp +++ b/engine.cpp @@ -75,6 +75,8 @@ bool InteractEngine::getInput(){ cout << endl << "mothur > "; getline(cin, input); + if (cin.eof()) { input = "quit()"; } + errorFree = errorCheckor->checkInput(input); if (errorFree == true) { CommandOptionParser parser(input); @@ -148,7 +150,9 @@ bool BatchEngine::getInput(){ while(quitCommandCalled == 0){ getline(inputBatchFile, input); - cout << endl << "dotur > " << input << endl; + if (inputBatchFile.eof()) { input = "quit()"; } + + cout << endl << "mothur > " << input << endl; errorFree = errorCheckor->checkInput(input); if (errorFree == true) { CommandOptionParser parser(input);