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


Groups > gnu.bash.bug > #16347

Arithmetic expansion in rediretion word is evaluated twice

From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject Arithmetic expansion in rediretion word is evaluated twice
Date 2020-06-01 23:17 +0300
Message-ID <mailman.954.1591042627.2541.bug-bash@gnu.org> (permalink)
References <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com> <f9664831-9f7d-2566-39fd-e2d30e2aea0b@case.edu> <CAH7i3Lqu3HgWv11oTYZj6C3z7wu2P7X0WCDr+Wa03k1HkuaAeg@mail.gmail.com>

Show all headers | View raw


1 Haziran 2020 Pazartesi tarihinde Chet Ramey <chet.ramey@case.edu> yazdı:

> 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?
>
> It was something about underlying $RANDOM functions in variables.c,
tomorrow I can mail the full error messages.

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


-- 
Oğuz

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Arithmetic expansion in rediretion word is evaluated twice Oğuz <oguzismailuysal@gmail.com> - 2020-06-01 23:17 +0300

csiph-web