Files
fish-shell/tests/checks/tmux-read.fish
Johannes Altmanninger 66e2b6d8c1 Fix query response wait confusion over builtin read
Every reader gets their own wait handle which is wrong and not actually
needed - it's a singleton.  We should probaly make it global. Let's
do an intermediate solution for now -- not much time this weekend ;).

Fixes #11110
2025-02-01 09:25:53 +01:00

21 lines
413 B
Fish

#RUN: %fish %s
#REQUIRES: command -v tmux
#REQUIRES: test -z "$CI"
set -g isolated_tmux_fish_extra_args -C '
function fish_greeting
set -l name (read)
echo hello $name
end
'
isolated-tmux-start
isolated-tmux send-keys name Enter 'echo foo' Enter
tmux-sleep
isolated-tmux capture-pane -p
# CHECK: read> name
# CHECK: hello name
# CHECK: prompt 0> echo foo
# CHECK: foo
# CHECK: prompt 1>