aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-06-06 08:26:23 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-06-06 08:26:23 +0300
commitd713f4ed5193143bc16c40c2fd5096628082c047 (patch)
tree19a8b997796b0c3604277418b65656cbd8c4a5d3 /doc
parentb220b5a367469c571358c34ea0df813522e99485 (diff)
downloadpies-d713f4ed5193143bc16c40c2fd5096628082c047.tar.gz
pies-d713f4ed5193143bc16c40c2fd5096628082c047.tar.bz2
Change syntax of the env.clear statement.
It no longer requires an argument. The correct syntax is env { clear; }
Diffstat (limited to 'doc')
-rw-r--r--doc/pies.texi15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/pies.texi b/doc/pies.texi
index ccb9f0e..63064e5 100644
--- a/doc/pies.texi
+++ b/doc/pies.texi
@@ -1061,7 +1061,7 @@ The compound @code{env} statement has the following syntax:
@example
@group
env @{
- clear @var{bool};
+ clear;
keep @var{pattern};
set "@var{name}=@var{value}";
unset @var{pattern};
@@ -1075,11 +1075,10 @@ modify the environment. The @code{clear} and @code{keep} statements
are executed first. Then, the @code{set} and @code{unset} statements
are applied in the order of their appearance in the configuration.
-@deffn {env} clear @var{bool}
-If @var{bool} is @samp{yes}, all environment variables will be cleared
-(unset). The resulting environment will be empty, unless one or more
-@code{keep} statements are also given (see below). The @code{clear}
-statement is always executed first.
+@deffn {env} clear
+Clears the environment by removing (unsetting) all variables, except
+those listed in @code{keep} statements, if such are given (see below).
+The @code{clear} statement is always executed first.
@end deffn
@deffn {env} keep @var{pattern}
@@ -1093,7 +1092,7 @@ environment all variables except @samp{HOME}, @samp{USER},
@example
@group
env @{
- clear yes;
+ clear;
keep HOME;
keep USER;
keep PATH;
@@ -1171,7 +1170,7 @@ The modern syntax equivalent is:
@example
@group
env @{
- clear yes;
+ clear;
@}
@end group
@end example

Return to:

Send suggestions and report system problems to the System administrator.