Skip to content

Psub cleanup not happening in event handlers #7792

Closed
@faho

Description

@faho

As reported by @marcusatiliusregulus on gitter:

function f --on-event fish_prompt
    source (echo "echo hello world" | psub)
end

causes psub to not clean up after itself - the "on-job-exit caller" event is never run. This causes issues with pyenv, because that still uses source (thing | psub) internally, and so it will lead to a lot of files in $TMPDIR.

This is caused by f7e2e7d forbidding job handlers inside event handlers from running. I'm going to soften it to still allow caller-exit handlers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionSomething that used to work, but was broken, especially between releases

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions