From: Martin Vidner Date: Tue, 13 Feb 2007 09:53:33 +0000 (+0000) Subject: Echo a newline after the user enters EOF. X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13458702a9ddb24dcca33d0dd5df6e9a34ca1402;p=platform%2Fupstream%2Fzypper.git Echo a newline after the user enters EOF. --- diff --git a/src/zypper.cc b/src/zypper.cc index 9c1f930..679cf2a 100644 --- a/src/zypper.cc +++ b/src/zypper.cc @@ -1010,7 +1010,11 @@ void command_shell () string command = sh_argv[0]? sh_argv[0]: ""; - if (command == "exit" || command == "quit" || command == "\004") + if (command == "\004") { + loop = false; + cout << endl; + } + else if (command == "exit" || command == "quit") loop = false; else safe_one_command (command, sh_argc, sh_argv);