On Wed, Oct 15, 2014 at 03:38:01PM +0200, 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)
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 or: 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 restore.