Skip to content

Crashes in prompt cause a repaint loop #9796

@faho

Description

@faho

fish_job_summary calls commandline -f repaint, which, if it is called via something in fish_prompt, causes it to loop.

I found this when I noticed that fossil crashes if $PWD doesn't exist, so the test case is:

function fish_prompt; fossil branch current; end
mkdir foo
cd foo
rm -rf $PWD

It'll end up printing a constant stream of

fish: Job 1, 'fossil branch current' terminated by signal SIGABRT (Abort)

until you press ctrl-c. While this should be a bug in fossil, the general principle stands.

I'm not sure how to detect this and turn fish_job_summary off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions