bug-bash
[Top][All Lists]
Advanced

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

Re: Print non-readonly variables with declare +r -p


From: Chet Ramey
Subject: Re: Print non-readonly variables with declare +r -p
Date: Wed, 14 Dec 2011 10:57:21 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 12/13/11 3:13 PM, Dan Douglas wrote:

> I imagine this is ok because Bash's declare -p is intended to be human-
> readable only, whereas Ksh guarantees -p produces output in a format reusable 
> as input.

Bash's `declare -p' output is intended to be reusable as input, though the
documentation doesn't make that explicit.

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



reply via email to

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