bug-bash
[Top][All Lists]
Advanced

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

Re: Incrementing variable=0 with arithmetic expansion causes Return code


From: Greg Wooledge
Subject: Re: Incrementing variable=0 with arithmetic expansion causes Return code = 1
Date: Fri, 28 Aug 2020 11:22:52 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri, Aug 28, 2020 at 08:00:30AM +0000, Gabriel Winkler wrote:
> # Causes error
> test=0
> ((test++))
> echo $?
> 1
> echo $test
> 1

https://mywiki.wooledge.org/BashFAQ/105

Exercise 1.  And 2.  And the whole rest of the page.



reply via email to

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