Mercurial > octave-dspies
changeset 17829:c2d9d42f4fe1
which: return the full path to a regular file (bug #40332)
* libinterp/corefcn/help.cc (do_which): Return absolute path for file
queries.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sat, 02 Nov 2013 14:46:43 -0400 |
parents | 6b787e274eb1 |
children | f22714d4a5da |
files | libinterp/corefcn/help.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/help.cc Fri Nov 01 21:42:06 2013 -0400 +++ b/libinterp/corefcn/help.cc Sat Nov 02 14:46:43 2013 -0400 @@ -1253,6 +1253,8 @@ file = load_path::find_file (name.substr (0, name.size () - 1)); else file = load_path::find_file (name); + + file = octave_env::make_absolute (file); }