On 10/15/14, 9:38 AM, lorenz.bucher....@rohde-schwarz.com wrote:
> Hello,
> in refer to 
> http://lists.gnu.org/archive/html/bug-bash/2014-09/msg00278.html variables 
> with suffix "%%" can't be set/exported.
> This makes problems restoring environments which where saved by external 
> programs like printenv (see example below)

This trick -- which was always fragile because printenv is not a robust
way to do this -- will not work any more.  One of the reasons we
implemented the new exported function name encoding scheme was to avoid
name collisions with exported variables.

You can use `export -f' to generate a function definition and declaration
that you can save in a file for later use.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to