[Top][All Lists]

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

Re: Preventing Bash Variable Confusion

From: Roger
Subject: Re: Preventing Bash Variable Confusion
Date: Wed, 29 Jan 2020 15:26:34 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

> On Wed, Jan 29, 2020 at 02:24:11PM -0500, Chet Ramey wrote:
>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.)
> `local' accepts the same option set as `declare'.

Got it.

$ man bash -> builtin local: "The (local) option can be any of the options 
accepted by declare."


reply via email to

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