HF RL Explorer

Task: Execute a Shell Script in Current Shell with Sudo Permission

Task: Execute a Shell Script in Current Shell with Sudo Permission: a task in Terminal-Lego-15k (Harbor dataset). When executing a shell script in the current shell (rather than a subshell), we typically use the . (dot) or source command. However, combining this with sudo presents a challenge…

The task

When executing a shell script in the current shell (rather than a subshell), we typically use the `.` (dot) or `source` command. However, combining this with `sudo` presents a challenge because `sudo` executes commands as a separate process, and `.` or `source` are shell built-in commands, not external executables.

Part of PrimeIntellect/Terminal-Lego-15k.