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


Groups > gnu.bash.bug > #16344

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 22:34 +0300
Message-ID <mailman.942.1591040053.2541.bug-bash@gnu.org> (permalink)
References <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com>

Show all headers | View raw


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


-- 
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 22:34 +0300

csiph-web