summaryrefslogtreecommitdiffabout
path: root/NEWS
authorSergey Poznyakoff <gray@gnu.org>2019-06-06 05:26:23 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-06-06 05:26:23 (GMT)
commitd713f4ed5193143bc16c40c2fd5096628082c047 (patch) (side-by-side diff)
tree19a8b997796b0c3604277418b65656cbd8c4a5d3 /NEWS
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 'NEWS') (more/less context) (ignore whitespace changes)
-rw-r--r--NEWS16
1 files changed, 8 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index eee1e25..4ee1ae5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU Pies NEWS -- history of user-visible changes. 2019-06-03
+GNU Pies NEWS -- history of user-visible changes. 2019-06-06
See the end of file for copying conditions.
Please send Pies bug reports to <bug-pies@gnu.org> or
@@ -43,12 +43,12 @@ contains redirections, pipes, etc. E.g.
The 'env' statement has been re-implemented as a compound statement.
It can contain the following sub-statements:
-** clear yes
+** clear
Clears the environment
** keep NAME
Keeps the variable NAME when clearing the environment. Implies
-"clear yes". NAME can be a globbing pattern, in which case all
+"clear". NAME can be a globbing pattern, in which case all
variables matching the pattern are retained.
** set "NAME=VALUE"
@@ -62,11 +62,11 @@ variables matching the pattern are unset.
Example:
env {
- clear yes
- keep PATH
- keep MANPATH
- keep "LC_*"
- set "MANPATH=$MANPATH${MANPATH:+:}/usr/local/man"
+ clear;
+ keep PATH;
+ keep MANPATH;
+ keep "LC_*";
+ set "MANPATH=$MANPATH${MANPATH:+:}/usr/local/man";
}
* Legacy 'env' statement.

Return to:

Send suggestions and report system problems to the System administrator.