Mercurial Hosting > reactionary
comparison src/beanshell.html.luan @ 89:416bdc22a478
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 23 Apr 2025 12:25:56 -0600 |
parents | f320d444face |
children |
comparison
equal
deleted
inserted
replaced
88:f320d444face | 89:416bdc22a478 |
---|---|
63 2 | 63 2 |
64 bsh % | 64 bsh % |
65 </code> | 65 </code> |
66 | 66 |
67 <p>The BeanShell <code>pwd</code> command is like the Bash <code>pwd</code> command, and the BeanShell <code>print</code> command is somewhat like the Bash <code>echo</code> command. But the syntax is different. BeanShell and Java have syntax like most programming languages. While Bash does <code>command arg1 arg2 arg3</code>, most programming languages do <code>command(arg1,arg2,arg3)</code>. In addition, Java requires a <code>;</code> at the end of a statement (command line).</p> | 67 <p>The BeanShell <code>pwd</code> command is like the Bash <code>pwd</code> command, and the BeanShell <code>print</code> command is somewhat like the Bash <code>echo</code> command. But the syntax is different. BeanShell and Java have syntax like most programming languages. While Bash does <code>command arg1 arg2 arg3</code>, most programming languages do <code>command(arg1,arg2,arg3)</code>. In addition, Java requires a <code>;</code> at the end of a statement (command line).</p> |
68 | |
69 <p><code>pwd</code> and <code>print</code> are only BeanShell commands. They are not in Java.</p> | |
68 | 70 |
69 <p>Also note that Java has the standard arithmetic operators.</p> | 71 <p>Also note that Java has the standard arithmetic operators.</p> |
70 | 72 |
71 <% | 73 <% |
72 end | 74 end |