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


Groups > gnu.bash.bug > #16346

Re: Arithmetic expansion in rediretion word is evaluated twice

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Arithmetic expansion in rediretion word is evaluated twice
Date 2020-06-01 15:58 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.951.1591041545.2541.bug-bash@gnu.org> (permalink)
References <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com> <f9664831-9f7d-2566-39fd-e2d30e2aea0b@case.edu>

Show all headers | View raw


On 6/1/20 3:34 PM, Oğuz wrote:
> See:
> 
>     $ unset foo
>     $ : <$((foo+=42))
>     bash: 84: No such file or directory
>     $ echo $foo
>     84
> 
> Reproducible on 4.4.20 and 5.0.11, couldn't try on development version
> because since the last push it doesn't compile

How about an error message from the compile failure?

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


Thread

Re: Arithmetic expansion in rediretion word is evaluated twice Chet Ramey <chet.ramey@case.edu> - 2020-06-01 15:58 -0400

csiph-web