[Top][All Lists]

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

Re: RFE: new option affecting * expansion

From: Greg Wooledge
Subject: Re: RFE: new option affecting * expansion
Date: Tue, 17 Aug 2021 07:18:33 -0400

On Tue, Aug 17, 2021 at 10:26:21AM +0300, Oğuz wrote:
> On Tue, Aug 17, 2021 at 6:31 AM Greg Wooledge <greg@wooledge.org> wrote:
> > An option to change the glob sorting order would actually be useful,
> > not for a large number of scripts, but for a very specific problem domain
> > where the shell is often used.  Is it critically important?  No.  But it
> > would be helpful.
> I agree. It would be even better if we could have the results of
> filename expansion in reverse-lexicographic and natural order too.

"Natural order"... eh.  Maybe.  I'm not convinced it's super useful, but
if it's easy to include, then it might be worth throwing in the pot.

But reverse order, you can do yourself, just by storing the results in
an array and then iterating backwards.

reply via email to

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