mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
share/config.fish: Quit if job expansion hack errors
This prevents something like `fg %5` to foreground the first job if there is no fifth. Fixes #9835
This commit is contained in:
@@ -125,3 +125,11 @@ sendline("wait 1")
|
||||
expect_prompt("wait: Could not find a job with process id '1'")
|
||||
sendline("wait hoge")
|
||||
expect_prompt("wait: Could not find child processes with the name 'hoge'")
|
||||
|
||||
# See that we don't wait if job expansion fails
|
||||
sendline("sleep 5m &")
|
||||
expect_prompt()
|
||||
sendline("wait %5")
|
||||
expect_prompt("jobs: No suitable job: %5")
|
||||
sendline("kill %1")
|
||||
expect_prompt()
|
||||
|
||||
Reference in New Issue
Block a user