# HG changeset patch # User Ben Abbott # Date 1206374812 14400 # Node ID ec78d83a7fdea65c4572c4f2c82d6be37fcb67c8 # Parent 43e3efb2cbc2d32ff64f5b6522bd69ae9a5537e7 variables.cc (exist): Clarify help. diff --git a/doc/interpreter/contributors.in b/doc/interpreter/contributors.in --- a/doc/interpreter/contributors.in +++ b/doc/interpreter/contributors.in @@ -142,6 +142,7 @@ Gabriele Pannocchia Sylvain Pelissier Per Persson +Primozz Peterlin Jim Peterson Danilo Piazzalunga Nicholas Piper diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-03-08 Primozz Peterlin + + * variables.cc (Fexist): Doc fix. + 2008-03-23 David Bateman * OPERATORS/op-int.h: Add el_div and el_ldiv operators to the diff --git a/src/variables.cc b/src/variables.cc --- a/src/variables.cc +++ b/src/variables.cc @@ -788,8 +788,9 @@ DEFUN (exist, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} exist (@var{name}, @var{type})\n\ -Return 1 if the name exists as a variable, 2 if the name (after\n\ -appending @samp{.m}) is a function file in Octave's @code{path}, 3 if the\n\ +Return 1 if the name exists as a variable, 2 if the name is an\n\ +absolute file name, an ordinary file in Octave's @code{path}, or (after\n\ +appending @samp{.m}) a function file in Octave's @code{path}, 3 if the\n\ name is a @samp{.oct} or @samp{.mex} file in Octave's @code{path},\n\ 5 if the name is a built-in function, 7 if the name is a directory, or 103\n\ if the name is a function not associated with a file (entered on\n\