aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-12-01 23:11:39 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-12-02 08:11:26 +0200
commitc0f4c3b99bb3364fe3f840b1ecb44af2eeba097b (patch)
tree374bc9fe1a9802d97f027b56ddf9a1f59268fb4e /NEWS
parentc26297063aa2dad0fecd28791a47a8bffcfc9925 (diff)
downloadpies-c0f4c3b99bb3364fe3f840b1ecb44af2eeba097b.tar.gz
pies-c0f4c3b99bb3364fe3f840b1ecb44af2eeba097b.tar.bz2
New component flag: expandenv
* NEWS: Update. * doc/pies.texi: Document the expandenv flag. * src/comp.c (component_finish): Warn if both "shell" and "expandenv" are used together. Expand command to argc/argv only unless the CF_EXPANDENV flag is given. * src/pies.c (str_to_cf): New flag: expandenv * src/pies.h (CF_EXPANDENV): New define. * src/prog.h (struct prog): New member: argv. * src/progman.c (destroy_prog): Free argv. (prog_start_prologue): Expand the command line taking into account the current environment if CF_EXPANDENV flag is given. Otherwise, copy the component argv to the prog. (prog_execute): Use prog->v.p.argv * tests/Makefile.am: Add expandenv.at * tests/testsuite.at: Likewise. * tests/expandenv.at: New file.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS13
1 files changed, 12 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8f873c8..2dcc6b4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU Pies NEWS -- history of user-visible changes. 2020-10-18
+GNU Pies NEWS -- history of user-visible changes. 2020-12-01
See the end of file for copying conditions.
Please send Pies bug reports to <bug-pies@gnu.org> or
@@ -17,6 +17,17 @@ properly.
* Fix cyclic dependency detection
+* New component flag: expandenv
+
+The "expandenv" flag instructs pies to parse the command line
+and to expand any references to environment variables within it
+as the Bourne shell would have done it. This allows for expanding
+the environment variables without the overhead of actually running
+the shell.
+
+This flag is incompatible with the "shell" flag. When both are used,
+the preference is given to "shell" and a warning message to that
+effect is issued.
Version 1.4, 2019-07-02

Return to:

Send suggestions and report system problems to the System administrator.