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

wc command should be compliant with posix ones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • gogo.jline-1.1.0, gogo.jline-1.1.2
    • gogo.jline-1.1.4
    • Gogo JLine
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: