Github user HeartSaVioR commented on the pull request:
https://github.com/apache/storm/pull/486#issuecomment-96094057
If we have file "a" containing "abc"...
> egrep -il 'abc' a | xargs -I '{}' bash -c "echo -n '{}':' '; egrep -ic
'abc' '{}'"
a: 1
> echo $?
0
> egrep -il 'fg' a | xargs -I '{}' bash -c "echo -n '{}':' '; egrep -ic
'fg' '{}'"
> echo $?
0
It could capture count of string matching patterns in files, but it
shouldn't be used to retval.
Note: I've tested it with OSX, with zsh.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---