bug-bash
[Top][All Lists]
Advanced

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

Re: RFE: new option affecting * expansion


From: Dale R. Worley
Subject: Re: RFE: new option affecting * expansion
Date: Mon, 16 Aug 2021 22:35:12 -0400

"Chris F.A. Johnson" <chris@cfajohnson.com> writes:
> It would be nice if there were an option to allow * to expand sorted
> by timestamp rather than aphabetically.

Generally, a new option is not a good way to accomplish this, as an
option has global effects and can cause other parts of the code to
malfunction.

Back in the old, old days, there was a program named "glob" that did
pathname expansions.  So you wouldn't say

   cat *

you'd say

   cat $( glob * )

where glob would get one argument, "*", and output a list of file
names.  A glob-by-modification-date program would be a better solution
for this need, IMHO.

Dale



reply via email to

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