# HG changeset patch # User Michael Goffioul # Date 1384819938 18000 # Node ID 9fc0836cb69bca0a61810415dfcdf2552d856ba0 # Parent 57994ddbf31b87f53643b1eb92db4d76ee688f60 Fix "get_help_text('\')" in Windows. * src/libinterp/utils.cc (fcn_file_in_path): For absolute path, only returns valid result for files, not for directories. diff -r 57994ddbf31b -r 9fc0836cb69b libinterp/corefcn/utils.cc --- a/libinterp/corefcn/utils.cc Mon Nov 18 19:12:05 2013 -0500 +++ b/libinterp/corefcn/utils.cc Mon Nov 18 19:12:18 2013 -0500 @@ -468,7 +468,7 @@ { file_stat fs (name); - if (fs.exists ()) + if (fs.exists () && ! fs.is_dir ()) retval = name; } else if (len > 2 && name[len - 2] == '.' && name[len - 1] == 'm')