HF RL Explorer

Task: Implement a Bash run Function for Command Execution Tracking

Task: Implement a Bash run Function for Command Execution Tracking: a task in Terminal-Lego-15k (Harbor dataset). Create a Bash script that implements a run function which executes commands, tracks their success or failure, and provides clear error reporting when a command fails. The function…

The task

Create a Bash script that implements a `run` function which executes commands, tracks their success or failure, and provides clear error reporting when a command fails. The function should work reliably regardless of where it is called within the script (including inside `case` statements, loops, or conditionals).

Part of PrimeIntellect/Terminal-Lego-15k.