Re: If the variable has its 'integer' attribute set,

2021-11-21 Thread Greg Wooledge
On Sun, Nov 21, 2021 at 07:18:09PM +, Darac Marjal wrote: > You probably already know that if you write: > > i = 65 > > then several things happen: Only one thing happens: bash tries to run the command named "i" and you will almost certainly get an error message saying "command not found".

Re: If the variable has its 'integer' attribute set,

2021-11-21 Thread Darac Marjal
On 21/11/2021 01:37, sim sim wrote: > Hi, all. > My question may be in the wrong place but I'm already exhausted. > Started reading https://www.gnu.org/software/bash/manual/bash.pdf. > > 3.4 Shell Parameters > . > > A parameter is set if it has been assigned a value.  The null string

Re: If the variable has its 'integer' attribute set,

2021-11-20 Thread Greg Wooledge
On Sun, Nov 21, 2021 at 01:37:14AM +, sim sim wrote: > I do not understand  "If the variable has its 'integer' attribute set," where > the variable has an 'integer' attribute, after all, this is not a function? They're talking about "declare -i". Which is really a stupid thing and I wish it