[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 5/8] builtins/source: parse the -i option
From: |
Robert Elz |
Subject: |
Re: [PATCH v2 5/8] builtins/source: parse the -i option |
Date: |
Fri, 17 May 2024 13:42:43 +0700 |
Date: Thu, 16 May 2024 23:54:12 -0400
From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= <vq@larryv.me>
Message-ID: <0b3fa8d4-7a3f-4bd6-8e8d-f7d1746bef2f@app.fastmail.com>
| This is the description from the bash.1 that's currently in my local
| repository:
Thanks.
Possibly useful I guess - though I'm not really sure about a possible
need to stat() every file from a glob result because that got set to
one of the options that needs it. "nosort" seems likely to be the most
useful of the available options (that description didn't say what "-nosort"
means though - backwards from the order in the directory?)
One option that might be useful (and cheap) which isn't there would be
to do a numeric sort (falling back to simple strcmp on equality) on the
file names - I use MH (nmh) for my mail, and needing to use ? ?? ??? ???? ?????
to get the files in the "correct" order (ie: not 1 10 100 1000 10000 10001 ...)
would be useful.
And if you're going to do all of that, why not have a list of sort
specs, so one can do "blocks,-size,mtime,..." to specify what happens
to files with the same number of blocks (and in this case, size, mod time).
kre
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, (continued)
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Robert Elz, 2024/05/15
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/16
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, G. Branden Robinson, 2024/05/16
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/16
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Martin D Kealey, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/20
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Robert Elz, 2024/05/16
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Lawrence Velázquez, 2024/05/16
- Stray comma in documentation of GLOBSORT, Lawrence Velázquez, 2024/05/17
- Re: Stray comma in documentation of GLOBSORT, Chet Ramey, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option,
Robert Elz <=
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Greg Wooledge, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Robert Elz, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/20
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Martin D Kealey, 2024/05/21
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Robert Elz, 2024/05/17
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Chet Ramey, 2024/05/20
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Matheus Afonso Martins Moreira, 2024/05/20
- Re: [PATCH v2 5/8] builtins/source: parse the -i option, Andreas Kähäri, 2024/05/20