fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian Boehmtests: Specifically #require fish_test_helper when neededb531cc8b4

master
434 B15 linesraw
1# RUN: env fish_test_helper=%fish_test_helper %fish %s
2#REQUIRES: command -v %fish_test_helper
3
4# Ensure that a job which attempts to disown itself does not explode.
5# Here fish_test_helper is the process group leader; we attempt to disown
6# its pid within a pipeline containing it.
7
8function disowner
9    read -l pid
10    echo Disown $pid
11    disown $pid
12end
13$fish_test_helper print_pid_then_sleep | disowner
14
15# CHECK: Disown {{\d+}}