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