[Top][All Lists]

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

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 09:05:11 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/8/17 8:48 AM, Eduardo A. Bustamante López wrote:

> As a side note, this special treatment does lead to some weirdness around
> shadowing assignment builtins with functions, or using them with the `builtin'
> builtin:

Yes, the `builtin' builtin removes the special treatment. Only the command
builtin, when in posix mode, preserves the declaration command status for
the command following it. This is also documented.

``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/

reply via email to

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