From fea1ec19412973c059fdfb5e2d8b6d5ea4fac00b Mon Sep 17 00:00:00 2001 From: Paulo Moura Date: Tue, 23 Nov 2010 00:25:33 +0000 Subject: [PATCH] Added documentation on the new built-in predicates cd/0, pwd/0, and ls/0. --- docs/yap.tex | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/yap.tex b/docs/yap.tex index 79389ca35..9c9afec4e 100644 --- a/docs/yap.tex +++ b/docs/yap.tex @@ -6733,6 +6733,12 @@ Operating System functionality: @cnindex cd/1 Changes the current directory (on UNIX environments). +@item cd +@findex cd/0 +@snindex cd/0 +@cnindex cd/0 +Changes the current directory (on UNIX environments) to the user's home directory. + @item environ(+@var{E},-@var{S}) @findex environ/2 @syindex environ/2 @@ -6749,6 +6755,18 @@ Changes the current directory (on UNIX environments). Unify the current directory, represented as an atom, with the argument @var{D}. +@item pwd +@findex pwd/0 +@snindex pwd/0 +@cnindex pwd/0 +Prints the current directory. + +@item ls +@findex ls/0 +@snindex ls/0 +@cnindex ls/0 +Prints a list of all files in the current directory. + @item putenv(+@var{E},+@var{S}) @findex putenv/2 @snindex putenv/2