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


Groups > gnu.bash.bug > #14838

Re: Double substitution issue

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Double substitution issue
Date 2018-11-21 08:37 -0500
Message-ID <mailman.4382.1542807491.1284.bug-bash@gnu.org> (permalink)
References <mailman.9859.1519829279.27995.bug-bash@gnu.org> <c44e4f88-7c8f-4a54-9f1e-762913c5f70c@googlegroups.com>

Show all headers | View raw


On Tue, Nov 20, 2018 at 08:16:47PM -0800, fulldecent@gmail.com wrote:
> I have found a way to use double expansion, and of course this is not safe 
> in all contexts: 
> 
>     from=1;to=3;eval echo {$from..$to} 

for ((i=from; i<=to; i++)); do
  ...
done.

Back to gnu.bash.bug | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Double substitution issue William Entriken <fulldecent@gmail.com> - 2018-02-28 03:25 -0500
  Re: Double substitution issue fulldecent@gmail.com - 2018-11-20 20:16 -0800
    Re: Double substitution issue Greg Wooledge <wooledg@eeg.ccf.org> - 2018-11-21 08:37 -0500

csiph-web