Until recently, the Karaf shell printed the value of variables. For example,
entering "$.variables" like this:
karaf@root()> $.variables
would print a list of the variables in the shell's environment. I downloaded
Karaf 4.2.0 yesterday and this behavior has changed. Entering $.variables at
the shell prompt prints nothing:
karaf@root()> $.variables
karaf@root()>
To get the list of .variables, I have to pipe the invocation to cat:
karaf@root()> $.variables | cat
awt.toolkit
java.specification.version
sun.cpu.isalist
...
The same behavior happens with variables defined at the shell prompt. For
example:
karaf@root()> temp=42
karaf@root()> $temp
karaf@root()>
I can use echo to get the value:
karaf@root()> echo $temp
42
Other variables print their values as expected:
karaf@root()> $java.version
1.8.0_171
I reviewed the changelog but did not find any mention of it. I search the
forums for "variables" and "shell", but the search came up empty. Was the
change in behavior intentional or unintentional? If it was unintentional,
should I create an issue to track it?
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html