From baf3471e4dae6fb5a1a965ee6b69c438541be5dd Mon Sep 17 00:00:00 2001 From: Recolic <git@me.recolic.net> Date: Thu, 6 Mar 2025 16:37:00 -0800 Subject: [PATCH] . --- sys/unix_handy.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/unix_handy.hpp b/sys/unix_handy.hpp index f18b618..faedefd 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_; } } -- GitLab