Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15847

Re: Preventing Bash Variable Confusion

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Preventing Bash Variable Confusion
Date 2020-01-29 14:24 -0500
Message-ID <mailman.61.1580325865.2384.bug-bash@gnu.org> (permalink)
References (1 earlier) <20200128210225.GC12574@localhost4.local> <20806.1580277461@jinx.noi.kre.to> <19032.1580321011@jinx.noi.kre.to> <20200129190553.GC5533@localhost4.local> <b9e672cf-9d32-b066-409d-882032cd79ae@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Preventing Bash Variable Confusion Chet Ramey <chet.ramey@case.edu> - 2020-01-29 14:24 -0500

csiph-web