[
https://issues.apache.org/jira/browse/MNG-7180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MNG-7180.
-------------------------------
Fix Version/s: 4.0.0-alpha-1
4.0.0
3.8.2
Resolution: Fixed
Fixed with
[a70828c7376dc8d07a2800e035271004ba9222e8|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=a70828c7376dc8d07a2800e035271004ba9222e8]
and
[7b355f72235c0bd26b872601b38a493ed1cc518b|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=7b355f72235c0bd26b872601b38a493ed1cc518b]
for {{maven-3.8.x}} branch.
> Make --color option behave more like BSD/GNU grep's --color option
> ------------------------------------------------------------------
>
> Key: MNG-7180
> URL: https://issues.apache.org/jira/browse/MNG-7180
> Project: Maven
> Issue Type: Improvement
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.8.2, 4.0.0, 4.0.0-alpha-1
>
>
> Since MNG-7080 introduced this option we mimic grep's behavior, but not the
> way grep actually does.
> GNU grep: https://git.savannah.gnu.org/cgit/grep.git/tree/src/grep.c#n2751
> FreeBSD grep:
> https://github.com/freebsd/freebsd-src/blob/781c3b51193e5bd99773439192ca68fdfdd9c330/usr.bin/grep/grep.c#L576-L596
> * Both make the value for {{--color}} optional and default to {{auto}}
> * They also accept {{tty}}, {{if-tty}}, {{yes}}, {{force}}, {{none}}, {{no}}
> We should support that approach too: Optional value and privately accepting
> additional values.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)