# RUN: %fish %s # Ensure that job IDs are sequential. status job-control full set -g tokill function func100 sleep 100 & set -g tokill $tokill $last_pid end func100 # The redirection ensures this becomes a real job. begin sleep 200 & set -g tokill $tokill $last_pid end