Jean-Baptiste Onofré created FELIX-6033:
-------------------------------------------

             Summary: 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.2, gogo.jline-1.1.0
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             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)

Reply via email to