Skip to content

Commit 9ca1c2e

Browse files
committed
which: use is_absolute_path
1 parent de88058 commit 9ca1c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+stdlib/+fileio/which.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
% directory/filename given
2020
for exe = names
2121

22-
if strlength(fileparts(exe)) > 0 && stdlib.fileio.is_exe(exe)
22+
if stdlib.fileio.is_absolute_path(exe) && stdlib.fileio.is_exe(exe)
2323
return
2424
end
2525

26-
end % for name
26+
end % for exe
2727

2828
% path given
2929

0 commit comments

Comments
 (0)