Skip to content

venv: activate.fish breaks prompt (prints directory) due to "echo 'exit $old_status' | ." line #140006

@atagtm

Description

@atagtm

Bug report

Bug description:

python3 -m venv test
source test/bin/activate.fish

causes ls-like output on every command.

Fix in venv/scripts/common/activate.fish:

        # Output the original/"old" prompt.
        _old_fish_prompt
        # Restore the return status of the previous command.
       return $old_status

fish, version 4.1.2

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-venvRelated to the venv moduletype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions