Mercurial > octave
changeset 21840:f382293bc11d
Include @class directories in the output of what() (bug #48035)
* what.m: Check isdir(fullfile(...)), not isdir (n).
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Sat, 28 May 2016 17:48:39 +1000 |
parents | 6b4f6339df91 |
children | cf690a73a186 |
files | scripts/miscellaneous/what.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/what.m Wed Jun 08 13:54:56 2016 -0700 +++ b/scripts/miscellaneous/what.m Sat May 28 17:48:39 2016 +1000 @@ -116,7 +116,7 @@ w.oct{end+1} = n; elseif (strcmp (e, mexext ())) w.mex{end+1} = n; - elseif (n(1) == "@" && isdir (n)) + elseif (n(1) == "@" && isdir (fullfile (dir, n))) w.classes{end+1} = n; endif endif