grep - Bugs: bug #39706, Does not return filename if only...
You are not allowed to post comments on this tracker with your current authentication level.
bug #39706: Does not return filename if only one file matches pattern
Submitter: | None | ||
Submitted: | Tue 06 Aug 2013 02:14:18 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Tue 06 Aug 2013 03:06:14 PM UTC, comment #4: |
Alasdair Campbell <alasdair> |
Tue 06 Aug 2013 02:24:20 PM UTC, comment #3: Or you can use the option -H to ensure that the file name is printed.
|
Stepan Kasal <kasal> |
Tue 06 Aug 2013 02:19:40 PM UTC, comment #2: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html, look at the STDOUT section. |
Eric Blake <ericb> |
Tue 06 Aug 2013 02:17:27 PM UTC, comment #1: Not a bug; this behavior is required by POSIX. That's why you'll often find recipes such as:
|
Eric Blake <ericb> |
Tue 06 Aug 2013 02:14:18 PM UTC, original submission:
If I run grep without the -r flag looking for a string (Incomplete in this case but it doesn't matter) using the string /.php for the files argument and only one file matches this pattern grep does not return the file name as part of the search.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2013-08-06 | ericb | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-4448.
Corresponding source code
Thanks for the clarification on this and Closing the report.