# # # patch "monotone.texi" # from [b7cd889cd3ec03d4f3be9624f1024cf5db06f773] # to [d73e2cb43685e67e7ab0dc49fbbb0dc3fbb13338] # ============================================================ --- monotone.texi b7cd889cd3ec03d4f3be9624f1024cf5db06f773 +++ monotone.texi d73e2cb43685e67e7ab0dc49fbbb0dc3fbb13338 @@ -8629,8 +8629,12 @@ @section Additional Lua Functions program name. In the previous example, @code{existonpath} would search for ``xxdiff.exe''. address@hidden guess_binary(@var{filespec}) address@hidden get_ostype() +Returns the operating system flavor as a string. + address@hidden guess_binary_file_contents(@var{filespec}) + Returns true if the file appears to be binary, i.e. contains one or more of the following characters: @smallexample @@ -8679,6 +8683,10 @@ @section Additional Lua Functions This function marks the named file as executable. On Windows has no effect. address@hidden match(@var{glob}, @var{string}) + +Returns true if @var{glob} matches @var{str}, return false otherwise. + @item mkstemp(@var{template}) Like its C library counterpart, mkstemp creates a unique name and @@ -8733,6 +8741,11 @@ @section Additional Lua Functions @end group @end smallexample address@hidden regex.search(@var{regexp}, @var{string}) + +Returns true if a match for @var{regexp} is found in @var{str}, return +false otherwise. + @item sleep(@var{seconds}) Makes the calling process sleep for the specified number of seconds. @@ -8750,6 +8763,15 @@ @section Additional Lua Functions option. @code{execute()} builds on @code{spawn()} and @code{wait()} in a standardized way. address@hidden spawn_pipe(@var{executable} [, @var{args ...}]) + +TO BE DOCUMENTED! + address@hidden spawn_redirected(@var{infile}, @var{outfile}, @var{errfile}, @var{executable} [, @var{args ...}]) + +Like spawn(), but with standard input, standard output and standard +error redirected to the given files. + @item wait(@var{pid}) Wait until the process with given PID (process handle on Win32) exits.