mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
18 lines
200 B
Fish
18 lines
200 B
Fish
|
#RUN: %fish %s
|
||
|
|
||
|
# See #6397
|
||
|
|
||
|
function f --on-signal USR1
|
||
|
begin
|
||
|
echo a
|
||
|
echo b
|
||
|
end | while read -l line
|
||
|
echo $line
|
||
|
end
|
||
|
end
|
||
|
|
||
|
kill -USR1 $fish_pid
|
||
|
|
||
|
#CHECK: a
|
||
|
#CHECK: b
|