Re: [Help-bash] What was the reason to give declare its name?
From:
Chet Ramey
Subject:
Re: [Help-bash] What was the reason to give declare its name?
Date:
Thu, 1 Dec 2016 08:24:07 -0800
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.0
On 11/30/16 4:48 PM, D630 wrote:
> I have been reading a lot about early shell history these days. Can you
> remeber, how the built-in command 'declare' got its name? What was the
> rationale behind it?
It was originally intended to be compatible with the ksh (ksh88 at the
time) `typeset', with the same semantics, but `declare' was a more
descriptive name. "declare variables and give them attributes".
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/