From 42a017978a9f7843a69a4f0278735ad40807b91a Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 4 Feb 2020 11:52:14 +0100 Subject: [PATCH 1/2] Fix doc typo --- include/options.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/options.hpp b/include/options.hpp index 03c82bd..edf1ab3 100644 --- a/include/options.hpp +++ b/include/options.hpp @@ -157,7 +157,7 @@ namespace ztd /*! @see option* find(char c) */ option& operator[](const char c) { return *this->find(c); } - //! @brief Get option with char name + //! @brief Get option with string name /*! @see option* find(const std::string& str); */ option& operator[](const std::string& str) { return *this->find(str); } From d3b6c29db7ebf384cf6dab306b972bcefb62807f Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 4 Feb 2020 14:52:22 +0100 Subject: [PATCH 2/2] shell: fix incorrect return value on shc --- src/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.cpp b/src/shell.cpp index 2eaa25f..960b3a9 100644 --- a/src/shell.cpp +++ b/src/shell.cpp @@ -181,5 +181,5 @@ void ztd::shc::run_process(shc* p) p->running = false; p->wp_finish.notify_all(); - p->return_value = ztd::pclose2(stream, pid); + p->return_value = WEXITSTATUS(ztd::pclose2(stream, pid)); }