1 2 3 4 5 6 7
#!/usr/bin/env dash fstop0stop_current_task() { # we ensured that only one task may be active active="$(task +ACTIVE _ids)" [ "$active" ] && task stop "$active" }