Re: Claim `declare' as a special command in manual?
From:
Chet Ramey
Subject:
Re: Claim `declare' as a special command in manual?
Date:
Wed, 8 Nov 2017 08:45:16 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
On 11/7/17 11:20 PM, Clark Wang wrote:
> For now the `declare' command is under SHELL BUILTIN COMMANDS in the man
> page so people may think bash parses the command line parameters the same
> way as other built-in commands which is not true.
Only assignment statements, as described in the manual page:
"Assignment statements may also appear as arguments to the alias,
declare, typeset, export, readonly, and local builtin commands
(declaration commands)."
in the section describing how assignment statements are expanded.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/