[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BeanShell suggestions
- To: Sean Luke <firstname.lastname@example.org>
- Subject: Re: BeanShell suggestions
- From: Pat <email@example.com>
- Date: Fri, 12 Nov 1999 19:50:22 -0600
- Cc: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
- In-Reply-To: <Pine.SO4.email@example.com>; from Sean Luke on Fri, Nov 12, 1999 at 07:10:04PM -0500
- Mail-Followup-To: Sean Luke <firstname.lastname@example.org>, email@example.com,firstname.lastname@example.org, email@example.com
- References: <Pine.SO4.firstname.lastname@example.org>
- Reply-To: email@example.com
- Resent-Date: Fri, 12 Nov 1999 20:58:16 -0500
- Resent-From: firstname.lastname@example.org
- Resent-Message-ID: <"uNaDP.A.1sE.0WML4"@host3.cedant.com>
- Resent-Sender: email@example.com
On Fri, Nov 12, 1999 at 07:10:04PM -0500, Sean Luke wrote:
> That being said, there's a simple modification that I think would make all
> the difference to a large number of BeanShell/JDE users like myself. I've
> noticed that something along the lines of 90% of the BeanShell usage I do
> is for one thing: evaluating expressions to see what they return.
> Amazingly, BeanShell doesn't provide this natively, so if I have
> expression Foo, which typically returns, say, an integer, I have to write
> it as:
> bsh % System.out.println(FOO);
Two important things -
First, there is something called the "show()" command that toggles on
automatic printing of results (except null).
Second, in bsh 1.0 I fixed the "expression on the command line" problem
so that you can simply type "2*2" instead of "(2*2)".
So I think everything you want is accomplished by upgrading to bsh 1.0
and turning on show();
It's likely that turning on show should be the default within the JDE...
This could be accomplished with a default start up script in some way.
Also new in 1.0 you can have a startup script (.rc file) in your home dir
or in the Java system home dir.
I'm sorry the documentation hasn't necessarily caught up with all of this yet.
Please see http://www.beanshell.org/changes.html for some more info about
the startup files.