You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/01/22 14:08:00 UTC
[jira] [Commented] (FELIX-6033) wc command should be compliant with
posix ones
[ https://issues.apache.org/jira/browse/FELIX-6033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748752#comment-16748752 ]
ASF GitHub Bot commented on FELIX-6033:
---------------------------------------
GitHub user jbonofre opened a pull request:
https://github.com/apache/felix/pull/166
[FELIX-6033] Align Felix Gogo wc posix action compliant with concrete posix one
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jbonofre/felix FELIX-6033
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/felix/pull/166.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #166
----
commit 2ff4867362fb0cc7bb3783a0c8b28510b2feb58a
Author: Jean-Baptiste Onofré <jb...@...>
Date: 2019-01-22T14:06:10Z
[FELIX-6033] Align Felix Gogo wc posix action compliant with concrete posix one
----
> 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)