diff --git a/sys/unix_handy.hpp b/sys/unix_handy.hpp index f18b618d40cbb79b95162ab3c0eef8c685364b33..faedefd51eaf6fb42d60d2fe6acbbeac2a537648 100644 --- a/sys/unix_handy.hpp +++ b/sys/unix_handy.hpp @@ -4,6 +4,7 @@ #include <unistd.h> #include <string> #include <stdexcept> +#include <vector> #include <rlib/sys/os.hpp> #if RLIB_OS_ID == OS_WINDOWS @@ -56,7 +57,7 @@ namespace rlib { } auto get_shell_name() { - return shell_run("echo $0").stdout_; + return shell_run("echo -n $0").stdout_; } }