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


Groups > gnu.bash.bug > #14838

Re: Double substitution issue

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Double substitution issue
Date Wed, 21 Nov 2018 08:37:33 -0500
Lines 10
Approved bug-bash@gnu.org
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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1542807491 1483 208.118.235.17 (21 Nov 2018 13:38:11 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Mail-Followup-To bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <c44e4f88-7c8f-4a54-9f1e-762913c5f70c@googlegroups.com>
User-Agent NeoMutt/20170113 (1.7.2)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14838

Show key headers only | 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