This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
A fix for command-line-arguments
- From: Jim White <jim at pagesmiths dot com>
- To: <kawa at sourceware dot cygnus dot com>
- Cc: Per Bothner <per at bothner dot com>
- Date: Thu, 29 Nov 2001 11:02:23 -0800
- Subject: A fix for command-line-arguments
Per,
Testing out the answer for the question about the command line
arguments revealed a small bug. When using "-w", that argument
is left in the command-line-argument value.
Here's the patch:
cvs diff -u repl.java
Index: repl.java
===================================================================
RCS file: /cvs/kawa/kawa/kawa/repl.java,v
retrieving revision 1.40
diff -u -r1.40 repl.java
--- repl.java 2001/10/11 22:04:36 1.40
+++ repl.java 2001/11/29 18:58:19
@@ -186,6 +186,7 @@
}
else if (arg.equals ("-w"))
{
+ iArg++;
getInterpreter();
setArgs (args, iArg);
checkInitFile();
jim
----------------------------------------------------------------
James P. White Netscape DevEdge Champion for IFC
IFC Exchange * Insanely great Java * http://www.ifcx.org
jim@pagesmiths.com Pagesmiths' home is http://www.pagesmiths.com