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); } 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)); }