We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a122fd3 commit ce09400Copy full SHA for ce09400
+stdlib/get_shell.m
@@ -7,13 +7,13 @@
7
cmd = "(dir 2>&1 *`|echo CMD);&<# rem #>echo ($PSVersionTable).PSEdition";
8
else
9
% https://askubuntu.com/a/1349538
10
- cmd = strcat("lsof -p ", '"$$"', " | grep -m 1 txt | xargs -n 1 | tail -n +9 | tr -d [:space:]");
+ cmd = strcat("lsof -p ", '"$$"', " | grep -m 1 txt | xargs -n 1 | tail -n +9");
11
end
12
13
[r, msg] = system(cmd);
14
15
if r == 0
16
- s = msg;
+ s = strtrim(msg);
17
18
s = getenv("SHELL");
19
0 commit comments