Skip to content

Commit fd84a94

Browse files
committed
add get_shell()
1 parent 5a2ae56 commit fd84a94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

+stdlib/get_shell.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function shell = get_shell()
2+
% return value of environment variable SHELL
3+
% this is mostly relevant on unix-like systems
4+
5+
shell = string(getenv("SHELL"));
6+
7+
end

0 commit comments

Comments
 (0)