execline feature: import -u

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Wed, 31 Dec 2014 13:47:55 +0100

  I find myself writing "import VAR unexport VAR" all the time
in execline scripts, because some environment variables are just
used for substitution and keeping them would only pollute the
rest of the script.

  For convenience, I have added a new "-u" option to import and
importas. "import -u VAR" substitutes VAR in the script and unexports
it at the same time. The option can also be used in multisubstitute
"import" directives.

  The feature is available in the latest git://git.skarnet.org/execline ;
please test it if you're interested (I've performed some basic tests
but might have missed some corner cases).

  And that wraps up 2014. Happy New Year !

Received on Wed Dec 31 2014 - 12:47:55 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC