Skip to content

Commit 5870333

Browse files
committed
add get_shell()
1 parent de53f8a commit 5870333

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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

+stdlib/is_wsl_path.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
function iswsl = is_wsl_path(path)
2+
% heuristic to detect a WSL path
3+
% https://learn.microsoft.com/en-us/windows/wsl/filesystems
24
arguments
35
path (1,1) string {mustBeNonzeroLengthText}
46
end

0 commit comments

Comments
 (0)