Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #13768
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Double substitution issue |
| Date | 2018-02-28 09:51 -0500 |
| Message-ID | <mailman.9861.1519829521.27995.bug-bash@gnu.org> (permalink) |
| References | <CAFwrLX4FoKEm8pAGgrT+SkeUOk=zKxA5-h2KuoVsfwJSMz+kew@mail.gmail.com> |
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
Re: Double substitution issue Greg Wooledge <wooledg@eeg.ccf.org> - 2018-02-28 09:51 -0500
csiph-web