diff --git a/sys/unix_handy.hpp b/sys/unix_handy.hpp index 7ebf7c9dbccc7767a98919cb2221bccfaf831542..f18b618d40cbb79b95162ab3c0eef8c685364b33 100644 --- a/sys/unix_handy.hpp +++ b/sys/unix_handy.hpp @@ -54,6 +54,10 @@ namespace rlib { return res; } + + auto get_shell_name() { + return shell_run("echo $0").stdout_; + } } // Deprecated. Use sys/sio.hpp