[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is a for .. do list newline sensitive ?
From: |
Zachary Santer |
Subject: |
Re: is a for .. do list newline sensitive ? |
Date: |
Sat, 14 Oct 2023 15:26:10 -0400 |
On Sat, Oct 14, 2023 at 9:26 AM alex xmb sw ratchev <fxmbsw7@gmail.com>
wrote:
> mv "$p"{,."$r"}
>
I was actually really surprised that this all expands the way you want. I
guess that's just parameter expansion happening after brace expansion, like
the manual says:
> Brace expansion is performed before any other expansions, and any
> characters special to other expansions are preserved in the result.
>
Would be nice if
{${start}..${end}..${incr}}
didn't just expand to
{0..10..2}
without calling eval, but oh well.