mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
8 lines
257 B
Fish
8 lines
257 B
Fish
#RUN: %fish -C 'set -g fish %fish' %s
|
|
|
|
# fish_exit fires successfully.
|
|
echo 'function do_exit --on-event fish_exit; echo "fish_exiting $fish_pid"; end' > /tmp/test_exit.fish
|
|
$fish /tmp/test_exit.fish
|
|
# CHECK: fish_exiting {{[0-9]+}}
|
|
|
|
rm /tmp/test_exit.fish
|