Skip to content

string match does not match on input from stdin #11361

@redsuperbat

Description

@redsuperbat
[I] ➜ ~ fish --version
fish, version 4.0.1
[I] ➜ ~ echo $version
4.0.1
[I] ➜ ~ uname -a
Darwin MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 arm64

I have tried without third party customizations and it produces the same result

REPRO:

I would expect this to print ok? to the console.

echo 'ok?' | string match '*\?'

However the program exits with a exit code of 1 instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions