Skip to content

Default prompt / __fish_print_pipestatus can't handle TERM=dumb #7904

@zanchey

Description

@zanchey

fish, version 3.2.1-90-ge56d8a8e5

env -i HOME=(mktemp -d) TERM=dumb ~/prefix/bin/fish
Welcome to fish, the friendly interactive shell          
Type help for instructions on how to use fish                                                                                  
error: missing argument                      
in function '__fish_print_pipestatus' with arguments '\[ \] \| 0'
        called on line 1 of file /home/wheel/zanchey/prefix/share/fish/functions/fish_prompt.fish
in command substitution      
        called on line 33 of file /home/wheel/zanchey/prefix/share/fish/functions/fish_prompt.fish
in function 'fish_prompt'        
in command substitution

This is because __fish_print_pipestatus gets called with a number of set_color command substitutions as arguments, which are empty when TERM is "dumb".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions