bug-bash
[Top][All Lists]
Advanced

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

Re: How come math/arithmetic cannot work by set -x


From: Chet Ramey
Subject: Re: How come math/arithmetic cannot work by set -x
Date: Sat, 13 Aug 2022 12:46:13 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 8/12/22 7:27 PM, Budi wrote:
How come math/arithmetic ((i=k+l)) cannot make use of set -x

If you're talking about what I think you are, because that's not how
`set -x' works.

It's the same reason that

k=2+3
echo $(( $k*5 ))
echo $(( k*5 ))

produces two different numbers.


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