Re: RFE: new option affecting * expansion

2021-08-17 Thread Ilkka Virta
On Tue, Aug 17, 2021 at 5:36 AM Dale R. Worley wrote: >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. > So that program would have to duplicate the globbing

Re: RFE: new option affecting * expansion

2021-08-17 Thread Greg Wooledge
On Tue, Aug 17, 2021 at 10:26:21AM +0300, Oğuz wrote: > On Tue, Aug 17, 2021 at 6:31 AM Greg Wooledge 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

Re: RFE: new option affecting * expansion

2021-08-17 Thread Oğuz
On Tue, Aug 17, 2021 at 6:31 AM Greg Wooledge 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

Re: RFE: new option affecting * expansion

2021-08-16 Thread Robert Elz
Date:Mon, 16 Aug 2021 22:35:12 -0400 From:"Dale R. Worley" Message-ID: <875yw4yf1b@hobgoblin.ariadne.com> | Back in the old, old days, there was a program named "glob" that did | pathname expansions. That's correct. But: | So you wouldn't say | |c

Re: RFE: new option affecting * expansion

2021-08-16 Thread Greg Wooledge
On Mon, Aug 16, 2021 at 10:35:12PM -0400, Dale R. Worley wrote: > 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 * ) Tcl still does it that way. Not with that syntax, but the command

Re: RFE: new option affecting * expansion

2021-08-16 Thread Dale R. Worley
"Chris F.A. Johnson" 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 i

Re: RFE: new option affecting * expansion

2021-08-11 Thread Chris F.A. Johnson
On Wed, 11 Aug 2021, Chet Ramey wrote: On 8/10/21 5:08 PM, Chris F.A. Johnson wrote: It would be nice if there were an option to allow * to expand sorted by timestamp rather than aphabetically. When you say `timestamp' I assume you mean by last modification time. Yes, that's what I meant.

Re: RFE: new option affecting * expansion

2021-08-11 Thread Greg Wooledge
On Wed, Aug 11, 2021 at 10:43:12AM -0400, Chet Ramey wrote: > On 8/10/21 5:08 PM, Chris F.A. Johnson wrote: > > > > It would be nice if there were an option to allow * to expand sorted > > by timestamp rather than aphabetically. > > When you say `timestamp' I assume you mean by last modification

Re: RFE: new option affecting * expansion

2021-08-11 Thread Chet Ramey
On 8/10/21 5:08 PM, Chris F.A. Johnson wrote: It would be nice if there were an option to allow * to expand sorted by timestamp rather than aphabetically. When you say `timestamp' I assume you mean by last modification time. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer