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 b17eeee commit e6a925eCopy full SHA for e6a925e
+stdlib/which.m
@@ -22,10 +22,7 @@
22
23
%% on Windows, append .exe if not suffix is given
24
if ispc() && strempty(stdlib.suffix(cmd))
25
- pathext = '.exe';
26
- if ~endsWith(cmd, pathext, IgnoreCase=true)
27
- cmd = strcat(cmd, pathext);
28
- end
+ cmd = strcat(cmd, '.exe');
29
end
30
%% full filename was given
31
if isfile(cmd) && stdlib.is_exe(cmd)
0 commit comments