fish-shell/tests/checks/tmux-job.fish
2024-05-07 17:55:29 +02:00

16 lines
444 B
Fish

#RUN: %fish %s
#REQUIRES: command -v tmux
isolated-tmux-start
isolated-tmux send-keys \
"sleep 0.5 &" Enter \
"echo hello"
sleep 1
isolated-tmux send-keys Space world
isolated-tmux capture-pane -p
# CHECK: prompt 0> sleep 0.5 &
# CHECK: prompt 0> echo hello
# CHECK: fish: Job 1, 'sleep 0.5 &' has ended
# (I've seen this print " world", I guess it depends on tmux version and how big it thinks the terminal is)
# CHECK: {{.*}} world