HF RL Explorer

Task: Preserve Environment Variables When Using Sudo

Task: Preserve Environment Variables When Using Sudo: a task in Terminal-Lego-15k (Harbor dataset). When using sudo to run commands, environment variables from the current user session are not passed to the sudo environment by default. This is a security feature, but sometimes you need specific…

The task

When using `sudo` to run commands, environment variables from the current user session are not passed to the sudo environment by default. This is a security feature, but sometimes you need specific environment variables (like `HTTP_PROXY`, `HTTPS_PROXY`, or custom variables) to be available in the sudo context.

Part of PrimeIntellect/Terminal-Lego-15k.