|
From: <ls...@us...> - 2007-07-01 09:03:39
|
Revision: 3344
http://jnode.svn.sourceforge.net/jnode/?rev=3344&view=rev
Author: lsantha
Date: 2007-07-01 02:03:38 -0700 (Sun, 01 Jul 2007)
Log Message:
-----------
Show expressions by default.
Modified Paths:
--------------
trunk/shell/src/shell/org/jnode/shell/command/bsh/BshCommand.java
Modified: trunk/shell/src/shell/org/jnode/shell/command/bsh/BshCommand.java
===================================================================
--- trunk/shell/src/shell/org/jnode/shell/command/bsh/BshCommand.java 2007-07-01 08:46:54 UTC (rev 3343)
+++ trunk/shell/src/shell/org/jnode/shell/command/bsh/BshCommand.java 2007-07-01 09:03:38 UTC (rev 3344)
@@ -107,10 +107,15 @@
bsh.run();
}
- private static Interpreter createInterpreter(InputStream in, OutputStream out, OutputStream err, boolean interactive){
- return new Interpreter(
+ private static Interpreter createInterpreter(InputStream in, OutputStream out, OutputStream err, boolean interactive)
+ throws Exception{
+ Interpreter interpreter = new Interpreter(
new BufferedReader(new InputStreamReader(in)),
new PrintStream(out),
new PrintStream(err), interactive);
+ if(interactive){
+ interpreter.eval("show();");
+ }
+ return interpreter;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|