Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15350
| From | YAMAGUCHI Takanori <t-yama@iij.ad.jp> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: arithmetic expression from outside |
| Date | 2019-09-06 11:41 +0900 |
| Message-ID | <mailman.452.1567737694.2075.bug-bash@gnu.org> (permalink) |
| References | <f1159f8a-741a-9c65-53be-bb29f223a2e4@iij.ad.jp> <06614fdf-2814-6dc8-d609-a12d668249c0@case.edu> <5e38e506-06df-e2c3-ad15-500f37379b8c@iij.ad.jp> |
I meant that the evaluation is unsafe. If this behaviour is the defined feature, manpage should be added the warning that "must not use unchecked input in an arithmetic expression context". On 2019/09/05 23:08, Chet Ramey wrote: > On 9/5/19 4:40 AM, YAMAGUCHI Takanori wrote: >> Is this an intended behaviour? > > The command substitution in the evaluation of the array index? Yes, > array indices undergo word expansions. >
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: arithmetic expression from outside YAMAGUCHI Takanori <t-yama@iij.ad.jp> - 2019-09-06 11:41 +0900
csiph-web