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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Jörg Weule
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 „shell:echo $returnedObject” .

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
Loading...