[hackers] [PATCH] Update macros in arg.h to not cause hidden side effects to argv or rely on previously defined variables.

2024-08-28 Thread sebastien peterson boudreau
I mainly wanted to gauge interest in this change by sending it. I was looking at the macros in arg.h and comparing to the POSIX `getopt`, but what I disliked is that `ARGBEGIN` mutates `argv` and relies on the variable `argv0` being previously defined. Of course, this is also an issue with `ge

Re: [hackers][sbase][PATCH] Update Makefile to use POSIX shell substitution

2025-03-13 Thread Sebastien Peterson-Boudreau
On Thu, Mar 13, 2025 at 10:50:36PM +0100, Страхиња Радић wrote: > IMHO the latest additions to POSIX are nonportable to programs and > systems using an earlier versions of the standard, This is a very good point and I would readily accept it as a refutation to my patch. I have found that all _moder

[hackers][sbase][PATCH] Add sbase-box to gitignore

2025-03-11 Thread sebastien peterson boudreau
From: Sebastien Peterson-Boudreau --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index c2504af..247ecd3 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ /rev /rm /rmdir +/sbase-box /sed /seq /setsid -- 2.48.1

[hackers][sbase][PATCH] Update Makefile to use POSIX shell substitution

2025-03-12 Thread sebastien peterson boudreau
From: Sebastien Peterson-Boudreau Rather than manually managing lists of files, use shell substitution (portable; specified in POSIX) to find files. This makes the Makefile easier to manage and shorter. Simpler is subjective, but I would not make this patch if I thought it added complexity. It

[hackers] [dmenu] [PATCH] Eliminate shell parent from processes spawned with dmenu_run

2025-07-05 Thread sebastien peterson boudreau
The double-fork fed into the shell at the end of the pipeline causes the process to be orphaned and thus adopted by init. Upsides: - Removes unnecessary shell processes, especially for long-running processes that may be started with dmenu_run - Makes pstree(1) output look nicer ;) Downsides(?):