[
https://issues.apache.org/jira/browse/FELIX-6033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré resolved FELIX-6033.
-----------------------------------------
Resolution: Fixed
> wc command should be compliant with posix ones
> ----------------------------------------------
>
> Key: FELIX-6033
> URL: https://issues.apache.org/jira/browse/FELIX-6033
> Project: Felix
> Issue Type: Bug
> Components: Gogo JLine
> Affects Versions: gogo.jline-1.1.0, gogo.jline-1.1.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: gogo.jline-1.1.3
>
>
> The Posix {{wc}} command formatting is not fully correct. For instance, a
> simple:
> {code}
> echo "foo\nbar"|wc -l
> {code}
> displays:
> {code}
> 2 2
> {code}
> So the output formatting is not correct (result is displayed twice) and
> {{wc}} can't be easily used in scripting.
> To be compliant with standard Posix {{wc}} command, the output should be:
> {code}
> 2
> {code}
> I'm adding tests and fixes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)