mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 22:25:58 +08:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
15 lines
394 B
Fish
15 lines
394 B
Fish
# RUN: env fish_test_helper=%fish_test_helper %fish %s
|
|
|
|
# Ensure that a job which attempts to disown itself does not explode.
|
|
# Here fish_test_helper is the process group leader; we attempt to disown
|
|
# its pid within a pipeline containing it.
|
|
|
|
function disowner
|
|
read -l pid
|
|
echo Disown $pid
|
|
disown $pid
|
|
end
|
|
$fish_test_helper print_pid_then_sleep | disowner
|
|
|
|
# CHECK: Disown {{\d+}}
|