Sujet : Re: Numerically sorted arguments (in shell)
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : comp.unix.shellDate : 20. Jun 2024, 23:16:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v529oa$2lkuv$4@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Pan/0.159 (Vovchansk; 873418b; Linux-6.9.5)
On Thu, 20 Jun 2024 06:58:11 +0200, Janis Papanagnou
<janis_papanagnou+
ng@hotmail.com> wrote in <
v50ct5$2e2lp$1@dont-email.me>:
On 20.06.2024 01:45, vallor wrote:
I finally remembered which tool has "versionsort(3)" -- [...]
It's a pity that this function is a GNU extension, otherwise it could be
used to implement the desired function in shells (ksh, bash) as an
additional globbing option (like the zsh glob qualifier) or a new 'set'
option to control the sorting.
Janis
I just posted a python program to comp.lang.python that sorts parameters
using strverscmp(3). It also shell-escapes the (common) IFS characters.
-- -v