mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 01:51:14 -03:00
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
21 lines
413 B
Fish
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>
|