[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double substitution issue

From: Greg Wooledge
Subject: Re: Double substitution issue
Date: Wed, 28 Feb 2018 09:51:52 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Feb 28, 2018 at 03:25:21AM -0500, William Entriken wrote:
> from=1
> to=3
> ls {$from..$to}

> Bash fails the chained substitution with:
> ls: {1..3}: No such file or directory

This is simply not a feature that bash implements.  Bash does the
expansions in the opposite order (brace expansion first, then parameter
expansion second), so it does not work.

If you want to open a feature request for it, I'll let Chet respond.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]