[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does {x..y} supposed to work?
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: How does {x..y} supposed to work? |
Date: |
Fri, 14 May 2021 01:36:01 +0200 |
the 100/105 were just arib values not related to 0-9 or a-z
On Fri, May 14, 2021, 00:40 Greg Wooledge <greg@wooledge.org> wrote:
> On Fri, May 14, 2021 at 12:06:30AM +0200, Alex fxmbsw7 Ratchev wrote:
> > btw now better addressed
> >
> > you chet said {..} expands early, like before $var can be resolved
> > but wouldnt you wanna add {$'\100'..$'\105'} .. those are static
> > i thought somehow it did work but for me it didnt now
>
> Brace expansion is done before quote removal, as you can easily see:
>
> unicorn:~$ echo {"a".."d"}
> {a..d}
>
> You're simply trying to make things too complicated. Bash doesn't
> support this style, and even if it did, you're only using braces to
> generate a list of 6 words which are one character each. You could
> simply type them out:
>
> @ A B C D E
>
> Isn't that a lot nicer than {$'\100'..$'\105'} ?
>
>
Re: How does {x..y} supposed to work?, Reuti, 2021/05/13
Re: How does {x..y} supposed to work?, Chet Ramey, 2021/05/13
- Re: How does {x..y} supposed to work?, Mike Jonkmans, 2021/05/14
- Re: How does {x..y} supposed to work?, Greg Wooledge, 2021/05/14
- Re: How does {x..y} supposed to work?, Lawrence Velázquez, 2021/05/14
- Re: How does {x..y} supposed to work?, Chet Ramey, 2021/05/14
- Re: How does {x..y} supposed to work?, Mike Jonkmans, 2021/05/14
- Re: How does {x..y} supposed to work?, Dennis Williamson, 2021/05/14
- Re: How does {x..y} supposed to work?, Greg Wooledge, 2021/05/14