mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 21:43:55 +08:00
97c456a986
Avoid complaining about ENOTTY results from tcsetpgrp, and ensure we ignore SIGTTOU the first time job control is enabled.
15 lines
408 B
Fish
15 lines
408 B
Fish
#RUN: env fth=%fish_test_helper %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
|