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


Groups > gnu.bash.bug > #15350 > unrolled thread

Re: arithmetic expression from outside

Started byYAMAGUCHI Takanori <t-yama@iij.ad.jp>
First post2019-09-06 11:41 +0900
Last post2019-09-06 11:41 +0900
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: arithmetic expression from outside YAMAGUCHI Takanori <t-yama@iij.ad.jp> - 2019-09-06 11:41 +0900

#15350 — Re: arithmetic expression from outside

FromYAMAGUCHI Takanori <t-yama@iij.ad.jp>
Date2019-09-06 11:41 +0900
SubjectRe: arithmetic expression from outside
Message-ID<mailman.452.1567737694.2075.bug-bash@gnu.org>
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.
> 

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web