Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16353
| From | worley@alum.mit.edu (Dale R. Worley) |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Arithmetic expansion in rediretion word is evaluated twice |
| Date | 2020-06-02 21:14 -0400 |
| Message-ID | <mailman.1026.1591146888.2541.bug-bash@gnu.org> (permalink) |
| References | <e77206bd-282c-1b99-d733-1fdd26289e9c@case.edu> <87sgfdeyrp.fsf@hobgoblin.ariadne.com> |
Chet Ramey <chet.ramey@case.edu> writes: > On 6/1/20 3:34 PM, Oguz 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. That does seem rather a bug, or at least, a poor error message. Is it hard to save the string that was attempted to be opened? Dale
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Arithmetic expansion in rediretion word is evaluated twice worley@alum.mit.edu (Dale R. Worley) - 2020-06-02 21:14 -0400
csiph-web