aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-06-07 08:00:32 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-06-07 08:00:32 +0300
commitc33922f128403f5d05d24f19abeaad2368ce5467 (patch)
tree89ffecf0abbb4fedca962da0b79f0f850179e09f /doc
parentcc533e2c6b86b62db169f912b4e7891273061c77 (diff)
downloadpies-c33922f128403f5d05d24f19abeaad2368ce5467.tar.gz
pies-c33922f128403f5d05d24f19abeaad2368ce5467.tar.bz2
Implement additional env.eval statement
Diffstat (limited to 'doc')
-rw-r--r--doc/pies.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/pies.texi b/doc/pies.texi
index 63064e5..4bd2f8f 100644
--- a/doc/pies.texi
+++ b/doc/pies.texi
@@ -1064,6 +1064,7 @@ env @{
clear;
keep @var{pattern};
set "@var{name}=@var{value}";
+ eval "@var{value}";
unset @var{pattern};
@}
@end group
@@ -1123,6 +1124,20 @@ env @{
@end example
@end deffn
+@deffn {env} eval "@var{value}"
+Perform variable expansion on @var{value} and discard the result. This
+is useful for side-effects. For example, to provide default value for
+the @env{LD_LIBRARY_PATH} variable, one may write:
+
+@example
+@group
+env @{
+ eval "$@{LD_LIBRARY_PATH:=/usr/local/lib@}";
+@}
+@end group
+@end example
+@end deffn
+
@deffn {env} unset @var{pattern}
Unset environment variables matching @var{pattern}. The following
will unset the @env{LOGIN} variable:

Return to:

Send suggestions and report system problems to the System administrator.