You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2019/01/21 16:55:00 UTC

[jira] [Commented] (KARAF-6060) shell:wc -l should only print line count, without leading spaces

    [ https://issues.apache.org/jira/browse/KARAF-6060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748089#comment-16748089 ] 

Jean-Baptiste Onofré commented on KARAF-6060:
---------------------------------------------

I will actually fix that on Felix gogo.jline as these commands comes from gogo.jline Posix actions.

> shell:wc -l should only print line count, without leading spaces
> ----------------------------------------------------------------
>
>                 Key: KARAF-6060
>                 URL: https://issues.apache.org/jira/browse/KARAF-6060
>             Project: Karaf
>          Issue Type: Wish
>    Affects Versions: 4.1.7
>            Reporter: Martin Lichtin
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 4.1.8, 4.2.3
>
>
> shell:wc -l (or -c -w -m) should only print one count, without leading spaces.
> It would then behave more like regular Unix wc and the output can more easily be used with another tool.
> Currently it prints two values instead (it printed only one in 4.0), with white-spacing around it.
> {noformat}
> root@karaf()> ls | wc -l
>     4943   4943
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)