[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare -p name=value thinks 'name=value' is variable
From: |
Chet Ramey |
Subject: |
Re: declare -p name=value thinks 'name=value' is variable |
Date: |
Fri, 8 Jan 2021 09:05:21 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/8/21 4:05 AM, William Park wrote:
Another issue I came across.
declare -p name=value
thinks 'name=value' is the variable. My reading of manpage seems to say
'name' should be used, but not sure. Is this a bug?
No. `declare -p' does not accept assignment statements.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/