[dev] I didn't know that you could use the shell like this: compound pipe?

2024-01-15 Thread Greg Reagle
I didn't know that you could use the shell like this. What a delightful surprise. Here is the code for bash/dash: command | (read -r; printf "%s\n" "$REPLY"; sort) The purpose of this is to keep the header and not sort it, but sort the rest. It is for a command that produces a header

Re: [dev] Presenting some more software

2024-01-15 Thread Страхиња Радић
On 24/01/15 09:58AM, Hiltjo Posthuma wrote: > I would recommend doas and for Linux the fork opendoas. Of course; there are several disadvantages to note about sup: - it doesn't check credentials; it is like permit nopass cmd1 permit nopass cmd2 permit nopass cmd3 in doas

Re: [dev] Presenting some more software

2024-01-15 Thread Hiltjo Posthuma
On Mon, Jan 15, 2024 at 06:22:21AM +0100, Страхиња Радић wrote: > On 24/01/13 09:19PM, stefan1 wrote: > > https://github.com/stefan1/su > > https://github.com/stefan1/rootdo > > https://github.com/stefan1/rdoedit > > I find sup[1] (~120-ish LoC) very useful, and in line with suckle