Skip to content

Grep fails when pattern starts with a dash #3524

@SleepyLeslie

Description

@SleepyLeslie

Description

The grep tool does not consider the situation when the pattern starts with a dash, making ripgrep think it is a flag.

OpenCode version

0.15.23

Steps to reproduce

Ask the agent to grep for such a pattern.

Screenshot and/or share link

Image

Operating System

Arch Linux

Terminal

kitty

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