From 8c3580f5c6bc64f2c9c7adc86196e60add855b74 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 20 Feb 2017 23:17:40 -0500 Subject: [PATCH] TS-32: control-d to exit - Thanks to Paul Fenwick. --- AUTHORS | 1 + ChangeLog | 2 +- src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index b44c784..9617cca 100644 --- a/AUTHORS +++ b/AUTHORS @@ -10,6 +10,7 @@ The following submitted code, packages or analysis, and deserve special thanks: Jörg Krause Ben Boeckel ilove zfs + Paul Fenwick Thanks to the following, who submitted detailed bug reports and excellent suggestions: diff --git a/ChangeLog b/ChangeLog index aa4ea45..b94854a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,7 @@ - TS-29 tasksh hangs trying to read task from stdin (thanks to ilove zfs). - TS-32 control-d to exit - (thanks to Eric Hymowitz). + (thanks to Eric Hymowitz, Paul Fenwick). - TS-34 Tasksh throw a warning at the end of a review command (thanks to bjonnh). - Review report now defaults to 6 days instead of 1 weeķ, which is more diff --git a/src/main.cpp b/src/main.cpp index 88c2043..afba727 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -85,8 +85,8 @@ const std::string getResponse (const std::string& prompt) std::getline (std::cin, response); if (std::cin.eof () == 1) { - response = ""; std::cout << "\n"; + response = ""; } #endif