[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with Bash-4.3 Official Patch 27

From: Eduardo A . Bustamante López
Subject: Re: Issue with Bash-4.3 Official Patch 27
Date: Wed, 15 Oct 2014 08:50:25 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Oct 15, 2014 at 03:38:01PM +0200, address@hidden 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)

I'm not sure if this is a bug, because I doubt that function
exporting was intended to use that way. Just source a file with the
function definitions...

If you want to save the function definitions, use:

  declare -f > func-defs


  declare -f func1 func2 > func-defs

And then source that file. And, bug gone ;)

I'm pretty sure it's not a bug, because you're just supposed to use
(my guess) function exports between live processes, not save and then

reply via email to

[Prev in Thread] Current Thread [Next in Thread]