fish-shell/tests/checks/tmux-job.fish
Johannes Altmanninger 0c5deacedc Add test for updating the commandline state on background job exit
This is the regression test for 8386088b3 (Update commandline state changes
eagerly as well, 2024-04-11).
2024-04-13 18:24:53 +02:00

15 lines
354 B
Fish

#RUN: %fish %s
#REQUIRES: command -v tmux
isolated-tmux-start
isolated-tmux send-keys \
"sleep 0.25 &" Enter \
"echo hello"
sleep .5
isolated-tmux send-keys Space world
isolated-tmux capture-pane -p
# CHECK: prompt 0> sleep 0.25 &
# CHECK: prompt 0> echo hello
# CHECK: fish: Job 1, 'sleep 0.25 &' has ended
# CHECK: prompt 0> echo hello world