--- a/jdk/src/solaris/doc/sun/man/man1/jrunscript.1 Tue May 10 19:57:30 2011 -0700
+++ b/jdk/src/solaris/doc/sun/man/man1/jrunscript.1 Wed May 11 08:30:46 2011 -0700
@@ -1,4 +1,4 @@
-." Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+." Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
."
." This code is free software; you can redistribute it and/or modify it
@@ -19,7 +19,7 @@
." or visit www.oracle.com if you need additional information or have any
." questions.
."
-.TH jrunscript 1 "02 Jun 2010"
+.TH jrunscript 1 "10 May 2011"
.LP
.SH "Name"
@@ -27,8 +27,6 @@
.LP
.SH "SYNOPSIS"
.LP
-
-.LP
.nf
\f3
.fl
@@ -39,8 +37,6 @@
.LP
.SH "PARAMETERS"
.LP
-
-.LP
.RS 3
.TP 3
options
@@ -53,8 +49,6 @@
.LP
.SH "DESCRIPTION"
.LP
-
-.LP
.LP
\f3jrunscript\fP is a command line script shell. jrunscript supports both an interactive (read\-eval\-print) mode and a batch (\-f option) mode of script execution. This is a scripting language independent shell. By default, JavaScript is the language used, but the \-l option can be used to specify a different language. Through Java to scripting language communication, jrunscript supports "exploratory programming" style.
.LP
@@ -63,8 +57,6 @@
.LP
.SH "OPTIONS"
.LP
-
-.LP
.RS 3
.TP 3
\-classpath path
@@ -112,10 +104,8 @@
.LP
.SH "EXAMPLES"
.LP
-\f3Executing inline scripts\fP
-.LP
-.RS 3
-
+.SS
+Executing inline scripts
.LP
.nf
\f3
@@ -126,13 +116,10 @@
.fl
\fP
.fi
-.RE
.LP
-\f3Use specified language and evaluate given script file\fP
-.LP
-.RS 3
-
+.SS
+Use specified language and evaluate given script file
.LP
.nf
\f3
@@ -141,42 +128,42 @@
.fl
\fP
.fi
-.RE
.LP
-\f3Interactive mode\fP
-.LP
-.RS 3
-
+.SS
+Interactive mode
.LP
.nf
\f3
.fl
jrunscript
.fl
-js>print('hello world');
+js> print('Hello World\\n');
+.fl
+Hello World
.fl
-hello world
+js> 34 + 55
.fl
-js>34 + 55
+89.0
.fl
-89
+js> t = new java.lang.Thread(function() { print('Hello World\\n'); })
+.fl
+Thread[Thread\-0,5,main]
.fl
-js> thread(function() { print('hello world'); }
+js> t.start()
.fl
-hello world
+js> Hello World
+.fl
+
.fl
js>
.fl
\fP
.fi
-.RE
.LP
-\f3Run script file with script arguments\fP
-.LP
-.RS 3
-
+.SS
+Run script file with script arguments
.LP
.nf
\f3
@@ -185,13 +172,16 @@
.fl
\fP
.fi
-.RE
.LP
test.js is script file to execute and arg1, arg2 and arg3 are passed to script as script arguments. Script can access these using "arguments" array.
.SH "SEE ALSO"
.LP
.LP
-If JavaScript is used, then before evaluating any user defined script, jrunscript initializes certain built\-in functions and objects. These JavaScript built\-ins are documented in jsdocs.
+If JavaScript is used, then before evaluating any user defined script, jrunscript initializes certain built\-in functions and objects. These JavaScript built\-ins are documented in
+.na
+\f2jsdocs\fP @
+.fi
+http://download.oracle.com/javase/7/docs/technotes/tools/share/jsdocs/allclasses\-noframe.html.
.LP