Felipe Kellermann <[EMAIL PROTECTED]> writes: > Not exactly. Just extending the utilities of a flag (invert).
Sorry, no, the standard is clear that the behavior you describe is correct, and grep should not change from this. -v directly affects only whether matching lines are selected, so both "grep -vl foo bar" and "grep -l foo bar" can (and typically will) output "bar". You can use "grep -L foo bar" to get the behavior you want, assuming you have GNU grep.
