On 2025-01-16 08:05, Paul Eggert wrote:
> On 2025-01-15 02:51, Anton Samokat wrote:
>> Please, make it more simple and straightforward, remove possible ambiguity
> 
> Unfortunately these are competing goals.
> 
> Perhaps this would be better:
> 
> If no FILE is given read standard input, but if -r is given recursively 
> search the working directory instead.
> [...]

Interesting.  How about:

    If no FILE is given, grep's behaviour depends on the -r (recursive)
    option, which is disabled (non-recursive) by default:

        - If non-recursive, then read standard input; otherwise
        - If recursive, examine all files in the working directory,
          including recursively descending into subdirectories.

No idea if this is good, bad, or indifferent... others can decide.

s-b etc.



Reply via email to