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


Groups > gnu.bash.bug > #15349

Re: arithmetic expression from outside

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: arithmetic expression from outside
Date 2019-09-05 10:08 -0400
Message-ID <mailman.428.1567692516.2075.bug-bash@gnu.org> (permalink)
References <f1159f8a-741a-9c65-53be-bb29f223a2e4@iij.ad.jp> <06614fdf-2814-6dc8-d609-a12d668249c0@case.edu>

Show all headers | View raw


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.

-- 
``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 | Unroll thread


Thread

Re: arithmetic expression from outside Chet Ramey <chet.ramey@case.edu> - 2019-09-05 10:08 -0400

csiph-web