mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
fix ProcStatus::status_value in pipeline after ctrl-z
Repro (with default prompt): $ HOME=$PWD target/debug/fish -C ' function sleep_func; sleep 1; false; end commandline "sleep 2 | sleep 3 | sleep 4 | sleep_func" ' Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish johannes@e15 ~> sleep 2 | sleep 3 | sleep 4 | sleep_func ^Zfish: Job 1, 'sleep 2 | sleep 3 | sleep 4 | s…' has stopped johannes@e15 ~ [0|SIGTSTP|SIGTSTP|1]> I'm not sure why the first sleep is not reported as stopped. Co-authored-by: Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> Fixes issue #12301 Closes #12550
This commit is contained in:
@@ -122,3 +122,12 @@ sendline("wait %5")
|
||||
expect_prompt("jobs: No suitable job: %5")
|
||||
sendline("kill %1")
|
||||
expect_prompt()
|
||||
|
||||
# Regression test for #12301
|
||||
sendline("function sleep_func; sleep 2s; end")
|
||||
expect_prompt()
|
||||
sendline("cat | cat | sleep_func > /dev/null")
|
||||
sleep(0.2)
|
||||
send("\x1a")
|
||||
sleep(0.2)
|
||||
expect_prompt()
|
||||
|
||||
Reference in New Issue
Block a user