Skip to content

main: Add systemd run0 equivalent to sudo - #958

Open
ColinKinloch wants to merge 1 commit into
zsh-users:masterfrom
ColinKinloch:run0
Open

main: Add systemd run0 equivalent to sudo#958
ColinKinloch wants to merge 1 commit into
zsh-users:masterfrom
ColinKinloch:run0

Conversation

@ColinKinloch

@ColinKinloch ColinKinloch commented Sep 23, 2024

Copy link
Copy Markdown

I suspect these changes are incorrect or incomplete.
Is the second value a list of single letter flags arguments? Should it be Cgprtu:AEHPSbilns:eKkVv?

run0 is a systemd 256 alternative to sudo.

@danielshahaf

danielshahaf commented Sep 23, 2024 via email

Copy link
Copy Markdown
Member

@ColinKinloch
ColinKinloch force-pushed the run0 branch 2 times, most recently from 51073a4 to e5f9905 Compare September 23, 2024 21:36
@ColinKinloch

Copy link
Copy Markdown
Author

That makes sense, thanks.
In that case the only options are ugD each taking an argument.
And -h which seems to be intentionally omitted.

@ColinKinloch
ColinKinloch marked this pull request as ready for review September 23, 2024 21:38
@danielshahaf

danielshahaf commented Sep 25, 2024 via email

Copy link
Copy Markdown
Member

@ColinKinloch

Copy link
Copy Markdown
Author

I do see a -h in https://man.archlinux.org/man/run0.1.en.

Ah, never mind. I was confused by the absence of h in sudo. having an option switch meanings seems like a bad idea 🤔 .

I've added h and noted that it's systemd 256.6

@rpigott

rpigott commented Jun 13, 2026

Copy link
Copy Markdown

Gentle ping.

I hope to add -k/-K/-v/-n to run0 in systemd/systemd#42465 fwiw, but that won't be available until v262 at the earliest. Either way this is a nice to have in z-s-h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants