fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
3dc36f74b
master
1#RUN: fish=%fish %fish %s 2#REQUIRES: command -v tmux 3#REQUIRES: test -z "$CI" 4 5printf >? $__fish_config_dir /functions/fish_greeting.fish %s\ 6'function fish_greeting 7set -l name (read) 8echo hello $name 9end 10' 11 12isolated-tmux-start 13 14isolated-tmux send-keys name Enter'echo foo' Enter 15tmux-sleep 16isolated-tmux capture-pane -p 17# CHECK: read> name 18# CHECK: hello name 19# CHECK: prompt 0> echo foo 20# CHECK: foo 21# CHECK: prompt 1> 22 23isolated-tmux send-keys C-l'SHELL_WELCOME=hello $fish -ic "read --prompt-str=R"' Enter 24tmux-sleep 25isolated-tmux send-keys C-c 26tmux-sleep 27isolated-tmux capture-pane -p 28# CHECK: prompt 1> SHELL_WELCOME=hello $fish -ic "read --prompt-str=R" 29# CHECK: R 30# CHECK: prompt 2>