Re: [dev] Suggestion for project idea/christmas hacking: sbase xargs -P and -0 support

From: Marc Chantreux <mc_AT_unistra.fr>
Date: Fri, 13 Dec 2024 18:12:00 +0100

Hello,

I have a question here: who uses sbase and why?

aside:

On Fri, Dec 13, 2024 at 05:25:54PM +0100, Hiltjo Posthuma wrote:
> It would be very useful to add the -0 (NUL separators) and -P (parallel jobs)
> options.

Can't agree more.

Another non-POSIX feature I really like is the date -f- and the hability
to write dates like: 'last week', 'next month' ' 1jan + 14 days'. I
always fall back on C when I use busybox.

> References:
>
> - OpenBSD xargs -0 (1996-06-11):
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/xargs/xargs.c?rev=1.2&content-type=text/x-cvsweb-markup
> - OpenBSD xargs -P (2003-12-06):
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/xargs/xargs.c?rev=1.14&content-type=text/x-cvsweb-markup
> - GNU findutils its initial git import has both options (Sun Feb 4 1996).
> - Suckless project ideas / sbase TODO/README:
> http://suckless.org/project_ideas/
> http://git.suckless.org/sbase/file/README.html#l143
> - POSIX xargs:
> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html

I don't know if it's relevant but today, the tiny core I use is busybox
so I don't know how it maters but:

- Busybox findutils:
    https://git.busybox.net/busybox/tree/findutils/xargs.c
   ( FEATURE_XARGS_SUPPORT_ZERO_TERM FEATURE_XARGS_SUPPORT_PARALLEL )

regards

-- 
Marc Chantreux
Pôle CESAR (Calcul et services avancés à la recherche)
Université de Strasbourg
14 rue René Descartes,
BP 80010, 67084 STRASBOURG CEDEX
03.68.85.60.79
Received on Fri Dec 13 2024 - 18:12:00 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 13 2024 - 18:48:11 CET