mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
600c0d5b3f
This is broken on OpenBSD because it apparently doesn't have a /proc we can query, so it just gives "fish". Since it's unnecessary in this context just skip it.
20 lines
622 B
Fish
20 lines
622 B
Fish
#RUN: env fth=%fish_test_helper fish=%fish %fish %s
|
|
|
|
# Ensure job control works in non-interactive environments.
|
|
|
|
status job-control full
|
|
/bin/echo hello
|
|
#CHECK: hello
|
|
|
|
$fth print_pgrp | read first
|
|
$fth print_pgrp | read second
|
|
test $first -ne $second
|
|
and echo "pgroups differed, meaning job control worked"
|
|
or echo "pgroups were the same, job control did not work"
|
|
#CHECK: pgroups differed, meaning job control worked
|
|
|
|
# fish ignores SIGTTIN and so may transfer the tty even if it
|
|
# doesn't own the tty. Ensure that doesn't happen.
|
|
$fish -c 'status job-control full ; $fth report_foreground' &
|
|
wait
|
|
#CHECKERR: background
|