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


Groups > gnu.bash.bug > #13768

Re: Double substitution issue

Path csiph.com!feeder.erje.net!2.us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!171.64.64.130.MISMATCH!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Double substitution issue
Date Wed, 28 Feb 2018 09:51:52 -0500
Lines 15
Approved bug-bash@gnu.org
Message-ID <mailman.9861.1519829521.27995.bug-bash@gnu.org> (permalink)
References <CAFwrLX4FoKEm8pAGgrT+SkeUOk=zKxA5-h2KuoVsfwJSMz+kew@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1519829521 22807 208.118.235.17 (28 Feb 2018 14:52:01 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 <CAFwrLX4FoKEm8pAGgrT+SkeUOk=zKxA5-h2KuoVsfwJSMz+kew@mail.gmail.com>
User-Agent NeoMutt/20170113 (1.7.2)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
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:13768

Show key headers only | View raw


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.

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


Thread

Re: Double substitution issue Greg Wooledge <wooledg@eeg.ccf.org> - 2018-02-28 09:51 -0500

csiph-web