Skip to content

Standard input detection doesn't work under PowerShell on macOS #1741

@drrlvn

Description

@drrlvn

What version of ripgrep are you using?

ripgrep 12.1.1
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

brew install ripgrep

What operating system are you using ripgrep on?

macOS Big Sur 11.0.1 (20B29)

Describe your bug.

Under PowerShell, when piping output to ripgrep it seems to search in the current directory instead of in the piped input.

What are the steps to reproduce the behavior?

In a directory containing a single file test.txt containing the line "infile", try searching input using rg.

What is the actual behavior?

$ echo "input" | rg input

$ echo "input" | rg input -
input

$ echo "input" | rg infile
test.txt
1:infile

What is the expected behavior?

The input should be searched instead of current directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixA feature or bug that is unlikely to be implemented or fixed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions