help-bash
[Top][All Lists]
Advanced

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

Re: How does {x..y} supposed to work?


From: Peng Yu
Subject: Re: How does {x..y} supposed to work?
Date: Mon, 17 May 2021 15:54:11 -0500

On 5/16/21, Chet Ramey <chet.ramey@case.edu> wrote:
> On 5/14/21 6:33 PM, Mike Jonkmans wrote:
>
>> How about {\x..\y} does an escaped expansion?
>> E.g. {\Z..\a} expands to \Z \[ \\ \] \^ \_ \` \a
>> Or {'x'..'y'} expanding to 'x' ... 'y'
>
> This is a reasonable extension, and would solve the {Z..a} issue.

The problem is how useful {Z..a} is in practice.

I will have to look up an ASCII table to know what the characters are
in between Z and a. If I want to use those characters in between, I
would just manually specify them so that the code is more readable. In
this sense, I'd think that {Z..a} is unnecessary and probably should
be disabled.

-- 
Regards,
Peng



reply via email to

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