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: Lawrence Velázquez
Subject: Re: How does {x..y} supposed to work?
Date: Fri, 14 May 2021 14:05:53 -0400
User-agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416

On Fri, May 14, 2021, at 1:32 PM, Greg Wooledge wrote:
> On Fri, May 14, 2021 at 07:10:05PM +0200, Mike Jonkmans wrote:
> > On Thu, May 13, 2021 at 03:14:33PM -0400, Chet Ramey wrote:
> > > On 5/13/21 12:02 PM, Peng Yu wrote:
> > > > According to the manpage, x and y can be single characters. "the
> > > > expression expands to each character lexicographically between x and
> > > > y, inclusive".
> > > 
> > > Hmmmmm. So which would be better: "alphabetic character" or "letter"?

The latter reads more naturally, but the former is more specific
and might avert future threads like this one.  Then again, the man
page already uses both -- seemingly interchangeably -- so either
would probably be sufficient.

> Also, both letter and alphabetic character are factually inaccurate.
> A brace expansion may include non-alphabetic characters, as long as
> they aren't first or last in the sequence.

The original quote is actually fine then, but other sentences could
be improved.  For example:

        A sequence expression takes the form {x..y[..incr]}, where
        x and y are either integers or single characters [...]

-- 
vq



reply via email to

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