You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Jörg Weule <we...@7b5.de> on 2017/03/27 09:52:20 UTC

Karaf Shell commands returning an object: Why is the returned object printed to console?

Hallo,

if a shell command (action) is returning an object, the string
representation is printed to console. Why is that done automatically. If
needed these objects can be printed by \u201eshell:echo $returnedObject\u201d .

If the object is a map, the output could be very long. If assigned to a
variable, methods of the object can be used to select the data needed to
be printed.

I could not find any documentation describing the behaviour of the shell
if objects are returned.

With kind regards

J�rg