Skip to content

exit inside fish_prompt function doesn't exit immediately #8033

@rnhmjoj

Description

@rnhmjoj

Issue description

When the exit command is executed inside fish_prompt, the shell doesn't exit unless some a command is typed and executed (pressing enter alone doesn't work).

Steps to reproduce:

set config.sh to

function fish_prompt
  echo '$ '
  exit
end

run fish and notice it doesn't exit.

Commit that introduced the issue

b018218 (Rework exit command)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions