help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Strange behaviour of trap ERR. (( x = 0 )) is an error?


From: Greg Wooledge
Subject: Re: [Help-bash] Strange behaviour of trap ERR. (( x = 0 )) is an error?
Date: Tue, 5 Sep 2017 10:26:29 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Sat, Sep 02, 2017 at 07:45:53PM +0300, Pierre Gaston wrote:
> if you assign you can do var=$((...)) instead of ((var=....))

Or in this case, simply x=0

See also http://mywiki.wooledge.org/BashFAQ/105



reply via email to

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