Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ESB-875
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Paul Lowry
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FUSE ESB

sort command omits the first line of output

Created: 16/Sep/09 01:52 PM   Updated: 19/Mar/10 08:57 AM
Component/s: None
Affects Version/s: 4.1.0.2-fuse
Fix Version/s: None

Environment: Tested using FUSE ESB 4.1.0.2 on Windows XP


 Description  « Hide
The sort command in the FUSE runtime shell seems to cut/omit the first line of its output.

In this example, first I print a list of 4 features; then I pipe the output through the sort command; then I pipe it through sort again, this time using the -r flag to reverse the order.

smx@root:/> features/list | grep " cxf"
[uninstalled] [4.1.0.2-fuse] cxf-jaxrs
[installed ] [2.2.2.1-fuse] cxf
[uninstalled] [4.1.0.2-fuse] cxf-nmr
[uninstalled] [4.1.0.2-fuse] cxf-osgi

smx@root:/> features/list | grep " cxf" | sort
[uninstalled] [4.1.0.2-fuse] cxf-jaxrs
[uninstalled] [4.1.0.2-fuse] cxf-nmr
[uninstalled] [4.1.0.2-fuse] cxf-osgi

smx@root:/> features/list | grep " cxf" | sort -r
[uninstalled] [4.1.0.2-fuse] cxf-nmr
[uninstalled] [4.1.0.2-fuse] cxf-jaxrs
[installed ] [2.2.2.1-fuse] cxf

When I pipe the output through "sort", the first entry "cxf" is missing.

When I pipe the ouptut through "sort -r", the first entry "cxf-osgi" is missing.

I applied the same test to various command outputs (another simple example is "help features"), but always the behaviour is the same.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.