Skip to content

Problem with prompt containing % under fish shell #449

Description

@jo95017

I followed the instructions for installing and configuring for fish on Mac OS Tahoe 26.5.2, including automatically starting when opening the shell.

However I get this error message after very command:
% invalid conversion specification

although everything else appears to work fine. I think this is arising because my fish prompt has a % in it, which is being passed unescaped to is.

This appears to be temporarily resolved by editing shellIntegration.fish and changing the last line from
printf $__prompt

to

printf (string replace -a '%' '%%' -- $__prompt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions