Skip to content
Snippets Groups Projects

shell_run

Merged Recolic requested to merge tmp_shell_run into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
  • baf3471e
    . · baf3471e
    Recolic authored
+ 2
1
@@ -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_;
}
}
Loading