fish-shell/tests/checks/job-control-not-a-tty.fish
ridiculousfish 3e8422f472 terminal_maybe_give_to_job to stop returning error on ENOTTY
Prior to this fix, if job control is enabled but stdin is not a tty, we
would return an error from terminal_maybe_give_to_job which would cause us
to avoid waiting for the job. Instead just return notneeded.

Fixes #6573.
2020-04-18 16:26:54 -07:00

7 lines
122 B
Fish

#RUN: echo 'status job-control full; command echo A ; echo B;' | %fish
# Regression test for #6573.
#CHECK: A
#CHECK: B