1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-17 20:28:03 +02:00
Andrew Gallant 4a30819302
cli: tweak how "is one file" predicate works
In effect, we switch from `path.is_file()` to `!path.is_dir()`. In cases
where process substitution is used, for example, the path can actually
have type "fifo" instead of "file." Even if it's a fifo, we want to
treat it as-if it were a file. The real key here is that we basically
always want to consider a lone argument as a file so long as we know it
isn't a directory. Because a directory is the only thing that will
causes us to (potentially) search more than one thing.

Fixes #2736
2024-02-15 11:59:59 -05:00
..
2023-11-26 14:11:05 -05:00
2023-11-27 21:36:54 -05:00
2024-01-06 14:27:44 -05:00
2023-11-26 14:13:54 -05:00
2023-11-26 14:16:46 -05:00
2023-11-27 21:36:02 -05:00
2023-11-26 14:15:44 -05:00
2023-11-27 21:34:58 -05:00