Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6033

wc command should be compliant with posix ones

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: gogo.jline-1.1.0, gogo.jline-1.1.2
    • Fix Version/s: gogo.jline-1.1.4
    • Component/s: Gogo JLine
    • Labels:
      None

      Description

      The Posix wc command formatting is not fully correct. For instance, a simple:

      echo "foo\nbar"|wc -l
      

      displays:

             2     2
      

      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:

      2
      

      I'm adding tests and fixes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                jbonofre Jean-Baptiste Onofré
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: