diff scripts/miscellaneous/what.m @ 28127:9413b3d56e00 stable

what.m: Report mex files in directory (bug #57877) * what.m: Change comparison of extension looking for mex file from "mexext" to "['.' mexext]" because extension includes the period.
author Rik <rik@octave.org>
date Fri, 21 Feb 2020 14:07:14 -0800
parents bd51beb6205e
children 28de41192f3c 0a5b15007766
line wrap: on
line diff
--- a/scripts/miscellaneous/what.m	Fri Feb 21 16:08:12 2020 +0100
+++ b/scripts/miscellaneous/what.m	Fri Feb 21 14:07:14 2020 -0800
@@ -163,7 +163,7 @@
       if (isfile (fullfile (dir, nm)))
         w.oct{end+1} = nm;
       endif
-    elseif (strcmp (e, mexext ()))
+    elseif (strcmp (e, ['.' mexext]))
       if (isfile (fullfile (dir, nm)))
         w.mex{end+1} = nm;
       endif