SYD-ENV(1)

πŸ“¦ version 3.51.2, in nixos 26.05

πŸ’– SYD-ENV(1) πŸ’–

okay so this little icon is fresh out of the General Commands Manual, and it's giving β€œrun a command with the environment of the process with the given PID” energy. bestie, let's get into it πŸ’…


🌸 NAME 🌸

syd-env β€” Run a command with the environment of the process with the given PID

✨ SYNOPSIS ✨

syd-env pid [-i] [name=value]... {command [arg...]}

syd-env -e <eval-str>

two whole moods, same tool. spot the -i in the first form, the optional [name=value]... pairs, and the {command [arg...]} at the end. the second form is the -e <eval-str> one πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so syd-env utility runs a command with the environment of the process with the given PID. literally that's the whole serve.

it is similar to the env(1) utility except it allows picking the environment of an arbitrary process. that's the plot twist, and we're obsessed.

given -e with a string argument, syd-env performs environment expansion and command substitution using wordexp(3). periodt ✨

🚨 SECURITY 🚨

ngl this part is important: the wordexp(3) child process is executed in a confined environment with a timeout of 3 seconds. confinement is done using Landlock, namespaces and seccomp. safety slay 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

πŸŽ€ AUTHORS πŸŽ€


πŸ’– and that's the whole page, bestie β€” the footer says 1980-01-01 and SYD-ENV(1), and yes, we ate. πŸ’–

πŸ“¦ where this page comes from