bug-bash
[Top][All Lists]
Advanced

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

Re: Preventing Bash Variable Confusion


From: Chet Ramey
Subject: Re: Preventing Bash Variable Confusion
Date: Wed, 29 Jan 2020 14:24:11 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 1/29/20 2:05 PM, Roger wrote:

> "Linux Shell Scripting with Bash." (Burtch) suggested using declare instead 
> of 
> local, due to local lacking the other switches declare provides. p262 (eg.  
> declare can specify type of variable, such as integar only.)

This is just wrong. `local' accepts the same option set as `declare'.


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



reply via email to

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