Mercurial > jwe > octave
changeset 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 | a578890b4942 |
children | c1ca9b6903cd 16ccaebe250a |
files | scripts/miscellaneous/what.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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