bug-bash
[Top][All Lists]
Advanced

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

Re: Issue with Bash-4.3 Official Patch 27


From: Chet Ramey
Subject: Re: Issue with Bash-4.3 Official Patch 27
Date: Fri, 17 Oct 2014 14:40:14 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 10/16/14, 4:37 PM, Geir Hauge wrote:

> Regardless though, shouldn't source <(declare -xp) work whether or not
> the environment contains invalid identifiers? It doesn't at present:
> 
> $ env %=% bash -c 'echo "$BASH_VERSION"; source <(declare -xp)'
> 4.3.30(1)-release
> /dev/fd/63: line 1: declare: `%': not a valid identifier
> 
> Isn't declare -p output meant to be reusable as shell input?

Yeah.  Names that get imported from the environment, but which are not
valid shell identifiers, should not leak into declare -p output.

I made that change about ten days ago, and it will be in the next release
of bash.  The current warning is an annoyance but otherwise doesn't
impact anything.

Chet

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



reply via email to

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