Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16352
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Arithmetic expansion in rediretion word is evaluated twice |
| Date | 2020-06-02 10:09 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.979.1591106958.2541.bug-bash@gnu.org> (permalink) |
| References | <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com> <e77206bd-282c-1b99-d733-1fdd26289e9c@case.edu> |
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 Yes. The redirection is evaluated once for the open and again for the error message. -- ``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
Re: Arithmetic expansion in rediretion word is evaluated twice Chet Ramey <chet.ramey@case.edu> - 2020-06-02 10:09 -0400
csiph-web